I am trying use the below command to access the commit ID's for all the commits on my branch.
git rev-parse HEAD~0
--> Gives the latest commit
git rev-parse HEAD~1
--> Gives the previous commit
git rev-parse HEAD~n
I need to access all the commit's one by one using a looping method
Ex: git rev-parse HEAD~i
I cannot make it work.