Today I just discovered a new command in git which should be very useful: git-stash, which is new in git 1.5.3. It’s great for those moments when git complaints about your modified tree, but you don’t want to commit anything yet. Now you can throw your currently uncommited changes into the drawer, work in something else and then get back to what you were doing. Sounds great!
The other hint is about reverting your tree back to how it was at some point in the past, play with it and then come back to present:
- Write down somewhere the commit ID for the current HEAD.
$ git reset --hard <commit id you want to go to>- Do something useful with your tree from the past.
$ git reset --hard <commit id you wrote down in #1>
Very nice.
e ai bauerdude!
nosso grande team leader!!!
eu nao sabia que voce tinha um blog!
curti a dica do git!
abracao cara e feliz aniversario de novo!