November 2017
Beginner
238 pages
5h 58m
English
In Git, a branch is nothing more than a label, a mobile label placed on a commit.
In fact, every leaf on a Git branch has to be labeled with a meaningful name to allow us to reach it and then move around, go back, merge, rebase, or discard some commits when needed.
Let's start exploring this topic by checking the current status of our grocery repository; we do it using the well-known git log command, this time adding some new options:
[1] ~/grocery (master) $ git log --oneline --graph --decorate * e4a5e7b (HEAD -> master) Add an apple * a57d783 Add a banana to the shopping list
Let's look at those options in detail:
Read now
Unlock full access