From 9d7ac6647c296ccca8d648f76af4622f8d6190ae Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 17 Aug 2023 11:23:45 +0200 Subject: [PATCH] added git checkout --- src/day_3/notes.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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