what's the Git equivalent of TFS commands shelve/unshelve? cherry-pick? -


I found that flat / uneven command in TFS is very easy and easy to use. What is GIT equivalent?

This scenario is in TFS:

  • I made a change in the trunk
  • I level: the change set has been saved
  • I work in the trunk
  • Anybody can unshelve: Set changes to your workspace

I know that a command call is a cherry-pick, but I'm not sure that the workflow and if it corresponds to need.

what you describe is similar, except that with git you have your own Store (not only on one server), only you can get back that change. / P>

The general idea is:

  # remove some of your changes to vim foo / bar.c # git hiding place # Do some other things ... # Retrieve your changes Git hiding pop  

If you want someone else to have access to this change, then you want to move it to a working branch: / P>

  # mak Add a git foo / bar.c to a branch GIT checkout-B temp-feature a # commit; GIT commit # Now you push this branch (or they can only be spread directly from you) git push origin temp-featureA # Now, in someone else's repo: get updates # git fetch origin # Make a branch remote branch git Branch temp- Feature A basic / temporary feature A # Check it either: git checkout temporary-feature A # or cherry-select it, to apply elsewhere: git cherry-pick temporary feature A # or, If this is a multiple commitment, then repeat it Yes! GIT Rebase - Fonto My-brunch Start-of-Feature A Temp-Feature A  

Comments