I am using git (actually, msysgit) 1.6.4 on Windows. Most of the time I do some branches. From time to time, I want to return to the wizard to cherry-pick one specific commit that I made in my function branch - usually because it is a useful bugfix that makes sense even without this function. My workflow looks like this: if it is unnecessarily complicated, tell me :-):
git checkout -b mycoolfeaturebranch
// hack away, implementing a feature and one bugfix (while I'm at it)
git add file_with_bugfix.cpp
git commit -m "Fixed bug 12345 // commit the bugfix
git checkout master // hop over to master
git cherry-pick // bring the bugfix into master
At this point, I usually want to return to my function branch to continue working on this function. Unfortunately, my branch names tend to get a little long (like "mycoolfeaturebranch"), and I don't have the assurance of the git name tab on Windows.
Maybe something like cd - in Unix shells (which jumps to the previous directory is useful for switching between two directories)? A git checkout - it would be great. :-)
source share