A common thing I\'d like to do is revert my working copy to a particular revision, do some testing, and then bring it back to the head of my current master. In the past I have
You can create a branch at the the specific commit you want to checkout (from the manual page)
git branch [--set-upstream | --track | --no-track] [-l] [-f] []
so fill in the
as the SHA1 you want you new branch
to start at and you won't get your 'head' detached from an expanding branch.
There will be other things you probably want to do to keep some of your working files in the state you desire....