June 2017
Beginner to intermediate
274 pages
6h 49m
English
We can make a new branch with git checkout -b, which will create the branch and switch to it automatically:
When we're in the branch, any code changes we make are associated with a branch, and when we leave the branch, they go away. This can be shown in the following example.
Let's say we want to change the moo cow to moo horse. For this, we'll run the following command to open up Emacs and edit the text file:
$ emacs file.txt

We'll then make the changes we want in the file:
We can then commit the file to the branch using the
Read now
Unlock full access