I use number of commits as version of my program (Using hash of commit as version very inconvenient, becouse it not sequential). So I obtain commit number:
git rev-list --count HEAD
For example for current state it outputs 53. Can I do checkout to commit number 35? Or obtain hash of commit number 35?