Git 1.5.3 : stash
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 pull does not work. Here come the stash, simply issue a git stash (or git-stash, with an optional description message as you can have multiple stashes), then git pull to include the upstream changes and finally git stash apply to re-integrate your latest stashed modifications.
- Interrupted workflow (this one talk to me so much)
Tue, 04 Sep 2007 14:57 Posted in Development Tools