diff --git a/src/day_3/notes.md b/src/day_3/notes.md index 2a0586a..900f046 100644 --- a/src/day_3/notes.md +++ b/src/day_3/notes.md @@ -38,6 +38,22 @@ if you want to stage all changes. ## git checkout +This command enables you to switch to another branch or to a previous commit. + +Examples are: + +```bash +git checkout "branchname" +``` + +or + +```bash +git checkout -b "branchname" +``` + +If you want to create a new branch and switch to it. + ## git push ## git pull