1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-11-24 05:21:36 +00:00

Merge pull request 'added git checkout' (#17) from Steven/dev-tools-course:git_checkout into main

Reviewed-on: https://codeberg.org/mo8it/dev-tools/pulls/17
This commit is contained in:
Mo 2023-08-17 10:18:41 +00:00
commit 033d0996c0

View file

@ -58,6 +58,22 @@ git commit -m "Your commit message here"
## git checkout
This command enables you to switch to another branch or to another 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