What I want to do is checkout a specific commit based on the commitId, but then I want to check out the commit that came just after the one I’m on. Is there any way to do this without using the commitId of the commit after the one I’m using? Or is there away to find out how far away from the current branch what I have is?
Basically I have the commitId of a revision that is X away from the head. I need to figure out how to get the commitId of the version that is X-1 away from the main or just find out what X is.
This will give you a useful name, such as
master~6, ortags/mytag~2, that you can use to easily name the next commit (i.e.master~5ortags/mytag~1).