git beginner here,
I experiment on simple project to get used with git, having a single file, i did couple consecutive amends and commits on it, so to say master gets 3 commits further away from initial commit. Then I try to revert my project to the first commit, i am branching to that first commit using it's hash/ or tag, there i expect to see my file as it's first condition ... but I found it with all amends up to the last commit where master is. Why is that?
If later on i amend and commit on it, getting back to master i found it ok as i left it, also getting one more time to the tag it is ok with my amends at first commit.
The only magic to me is that - why getting few commits back from master does not show my file as it was at the moment of doing those early commits?