mirror of
https://codeberg.org/Mo8it/How_To_Linux.git
synced 2024-11-21 18:08:03 +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:
commit
033d0996c0
1 changed files with 16 additions and 0 deletions
|
@ -58,6 +58,22 @@ git commit -m "Your commit message here"
|
||||||
|
|
||||||
## git checkout
|
## 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 push
|
||||||
|
|
||||||
## git pull
|
## git pull
|
||||||
|
|
Loading…
Reference in a new issue