mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Add cli hints to the first three levels
This commit is contained in:
parent
437cbb7a37
commit
7ecc55a3fb
10 changed files with 75 additions and 15 deletions
levels/branches
|
@ -7,6 +7,18 @@ Did you know that creating parallel timelines is perfectly legal and safe? It's
|
|||
|
||||
Can you find out when things went wrong in this zoo, and create a parallel universe where everyone is happy?
|
||||
|
||||
[cli]
|
||||
|
||||
The blue animal represents a concept known as the "HEAD pointer" in Git: It shows you which commit is the current one.
|
||||
|
||||
Here's a cool trick to go to the previous commit:
|
||||
|
||||
git checkout HEAD^
|
||||
|
||||
You can also go back two commits by typing, for example:
|
||||
|
||||
git checkout HEAD~2
|
||||
|
||||
[setup]
|
||||
|
||||
mkdir cage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue