My level in regards to git is beginner
: I'm basically able to commit, pull, push and switch/create branches.
My current commit is 222222222
and a previous one in the same branch was 111111111
.
I want to retrieve the branch as it was on commit 111111111
, copy the files it contained and go back to 222222222
so I can continue my work based on that commit. Revert seems to be what I need.
Using revert, I can have the following (revert also commits if I understand properly):
- commit
111111111
- commit
222222222
- revert to
111111111
(it also commits111111111
again) - revert to
222222222
(it also commits222222222
again)
But I don't want the reverts to appear in my history.
So how can I actually take a snapshot of my repository at the moment of my commit 111111111
?