Is there an easy way to change to previously active branch?
问题 I'm using git (in fact, msysgit) 1.6.4 on Windows. Most of the time I'm doing work in some feature branches. Every now and then, I want to hop back to master to cherry-pick one particular commit I did in my feature branch - usually because it's a useful bugfix which makes sense even without the feature. My workflow is like this - if this is unnecessarily complicated, please tell me :-) : git checkout -b mycoolfeaturebranch // hack away, implementing a feature and one bugfix (while I'm at it)