I am looking at my two most recent changesets:
$ git log --oneline
123798 most recent stuff
349873 earlier changes
...
Currently I am on the ‘most recent stuff’ changeset. What I want to do is have the HEAD pointer stay on this changeset, but have the files look as though I was on ‘earlier changes’. Sort of the opposite of git reset --soft, where the HEAD pointer moves but the files don’t change.
Edit
What I’ve found works is to do
$ git checkout 349873
$ git reset --soft 123798
$ git reset HEAD
so this describes what I want to happen. But I’m wondering if there is a more succinct way of doing this?
This won’t touch your working copy.