About git-thought

Stephen J. Turnbull stephen at xemacs.org
Fri Apr 3 07:12:20 BST 2009


Matthieu Moy writes:
 > "Stephen J. Turnbull" <stephen at xemacs.org> writes:
 > 
 > > git commit -a -m "Nyet."
 > > git branch versionA         # I'm still on the trunk, but my work is safe
 > >                             # I know where to find it, in branch versionA
 > > git reset --hard master^    # "erase the blackboard"
 > 
 > which is actually almost the same as "git stash"

No, in my workflow it's not.  The point is that there is a *named*
branch that I can merge or leave for later consideration, and I may
have several of these.  Note that bzr has the shelf extension which is
equivalent to git stash AFAICS.




More information about the bazaar mailing list