I've got a local repository (no remote) as I've been building up a migration from subversion.
In there are lots of tags and everything is fine, i.e. I've been running git add . -A
, followed by a commit, then a git tag -a
, etc.
What I wanted to do was bring back the code in each tag just to compare with my base in another folder, so I did what I would have done in subversion and deleted the files/folders, switched to the tag I wanted (git checkout v1.0.0
, etc) followed by doing an equivalent to an update to bring back v1.0.0, etc. into the working folder.
After I did this I realized it thinks I now want to update my tag with a load of deletes.
So, long story short, how do I get my files back, i.e. restore files as they should be like you would do with a subversion 'Update' :)
I'm doing this because I wanted to start with a clean folder every time, rather than doing a checkout into the folder full of the current version.
Thanks.