Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What you want to do is accomplished with plain old branching in git.</p> <p>From <a href="https://stackoverflow.com/questions/556981/what-is-shelving-in-tfs-just-a-soft-checkin-so-others-can-see-code#answer-557013">a nice StackOverflow answer</a> by <a href="https://stackoverflow.com/users/23283/jaredpar">JaredPar</a>:</p> <blockquote> <p>Shelving is a way of saving all of the changes on your box without checking in. The changes are persisted on the server.</p> </blockquote> <p>This is analogous to committing to a branch and pushing it to a server in git.</p> <h2>How to do it:</h2> <p>Let's say you're working on the "master" branch and you decide to implement feature X. You get a good start on it, but then your boss tells you that feature Y needs implemented as soon as possible. Phil in the next cube over volunteers to finish feature X while you do feature Y. Here's what you do:</p> <p>Make a new branch and switch to it:</p> <pre><code>$ git checkout -b feature-x </code></pre> <p>Commit your changes:</p> <pre><code>$ git add filethatyouchanged.cc $ git commit -m 'partial implementation of feature X' </code></pre> <p>Push it to a server that Phil can see:</p> <pre><code>$ git push origin feature-x </code></pre> <p>Go back to the master branch (which has not changed):</p> <pre><code>$ git checkout master </code></pre> <p>You might also want to proactively create a new branch for feature Y:</p> <pre><code>$ git checkout -b feature-y </code></pre> <p>Phil can now pull down your feature X work and pick up where you left off:</p> <pre><code>phil$ git fetch origin phil$ git checkout -t origin/feature-x </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload