Say I have a git repository where I never commit changes and only use it to read its contents. Every now and then I pull from origin remote to stay up to date with the most recent changes.
Is there a way for me to know which versions I have checked out since I cloned the repository?
Why do I need this?
The problem I have is that I pull from the remote rarely and the project evolves quickly, so I would like to keep track of the commits that I have used (i.e. checked out) in the past, in case I want to revert my working directory to a state where I know it was working for me. Remember, I am only interested in the commits that I have actually checked out.
Update: It looks like I can do this with tags (tag before I pull), although I can't figure out how to get git to only list my tags. Still, I was wondering if git would already keep track for me of the commits I have checked out.