I installed this monday Git 1.5.3 and discovered a new functionality I find worth sharing : stash.
Basically, stash grab your current uncommitted changes and put them away until you want to reapply them. Git documentation for git-stash lists two examples where this comes in handy :
- Pulling into a dirty tree
git pulldoes not work. Here come the stash, simply issue a
git-stash, with an optional description message as you can have multiple stashes), then
git pullto include the upstream changes and finally
git stash applyto re-integrate your latest stashed modifications.
- Interrupted workflow (this one talk to me so much)
Tue, 04 Sep 2007 16:57 Posted in Development Tools