November 2017
Beginner
238 pages
5h 58m
English
First of all, we need to do some housekeeping. Go back to the grocery repository and clean up the working tree; double-check that you are in the master branch, and then do a git reset --hard master:
[24] ~/grocery (master) $ git reset --hard master HEAD is now at 603b9d1 Add a peach
This allows us to discard all the latest changes and go back to the latest commit on master, cleaning up even the staging area.
Then, delete the bug branch we created some time ago; the command to delete a branch is again the git branch command, this time followed by a -d option and then the branch name:
[25] ~/grocery (master) $ git branch -d bug error: The branch 'bug' is not fully merged. If you are sure you want ...
Read now
Unlock full access