You could use relative refs to move branches around. e.g., git branch -f master HEAD~3, etc.
The “^” Operator
Goes up to the first parent. e.g., git checkout master^
The “~[integer]” Operator
The integer specified is the number of parents you would like to ascend to. e.g., git checkout HEAD~4 goes up 4 parents from HEAD.
Recent Comments