The relative reference HEAD~2 is equivalent to :
HEAD^^
HEAD^1
HEAD^2
HEAD~^
HEAD~1^
HEAD^~1
HEAD~1~1