If you want to move a lot of levels up in the commit tree. It might be tedious to type
Example:
Commit tree start: Commit tree goal:

Answer:
Example:
Commit tree start: Commit tree goal

Answer:

Goal:
^ several times, so Git also has the tilde (~) operator.Example:
Commit tree start: Commit tree goal:
Answer:
- git checkout master~4 .
-f option.Moves (by force) the master branch to three parents behind HEAD.Example:
Commit tree start: Commit tree goal
Answer:
- git branch -f master HEAD~3 .
Goal: