mirror of
https://codeberg.org/Mo8it/How_To_Linux.git
synced 2024-11-24 08:41:35 +00:00
added git checkout
This commit is contained in:
parent
ba80482b59
commit
9d7ac6647c
1 changed files with 16 additions and 0 deletions
|
@ -38,6 +38,22 @@ if you want to stage all changes.
|
||||||
|
|
||||||
## git checkout
|
## 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 push
|
||||||
|
|
||||||
## git pull
|
## git pull
|
||||||
|
|
Loading…
Reference in a new issue