git love
I'm crawling out of the rock I've been hiding under for the last months to write my first post here and to (again) proclaim the huge grand-ness of git.
My use case today: A week ago I fixed a rather small bug in a branch that has not been merged into master. Today I stumbled over the same bug in another branch and of course remembered that I fixed the problem already.
so:
git co master git log -Sinit_job # gives me a306cfc = the commit that fixed the bug git co the-branch-I'm-currently-working-on git cherry-pick a306cfc
done!
And now I have to go back to not spend time on the lovely Perl community...
With recent versions of git you can easily switch between branches your current branch and your previous branch with git cd -; just cd - does with folders.