March 2019
Intermediate to advanced
636 pages
27h 50m
English
Continuing from our previous attempt, we know that we need a separate branch to store our work before we can submit a pull request to the master branch. Now that we've committed a change, we need to be careful not to lose our work. The first thing we will do will be to undo our commit by running the following command:
git reset HEAD^
To save our work, we will use a nice function from Git that will temporarily store our work:
git stash
With our modification saved, we can then create the new branch locally by running the Git checkout command. For those who are less familiar with Git, the -b option specifies the name of the new branch and the last parameter indicates that the new branch is based ...
Read now
Unlock full access