On Sep 27, 2012, at 18:58, Darrell Anderson <humanreadable(a)yahoo.com> wrote:
What is the proper way to revert my local GIT repo to
a specific date (commit)?
I want to modify the sources as they would have looked on a specific day.
I've read to run git reset --hard {HEAD} where {HEAD} is the commit to rest. Does
that command truly reset the repo? That is does the command only reset indexes and leave
the sources intact or are sources modified to that specific commit and all subsequent
pulls are deleted?
No, you've hard reset to that state. The only possible thing I can
think of are files that you have created but not tracked, which may
still exist in the directory.
I realize that resetting my local repo will mean a bandwidth hit when I restore
everything. :)
No, don't think so. You already have a copy of the local repo, and
you're not deleting any commits... So I think you could reset up back
to {HEAD}.
Better yet, just do git checkout <commit>? to switch to that view of
the commit, then checkout master to seitch back to your working dir :D
Either that, or my tiredness is exponentially growing.