File size: 641 Bytes
53a9f04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# How to use Git:
## Basic:
```bash
git commit -m "message"
git push
git pull
git add .
```
## Branching:
```bash
git branch # see the branches
git status # see anything to commit
git checkout <branchname> # switch branch
Put New Branch On Remote
git push --set-upstream origin <branchname>
Delete Branch On Remote
git push origin --delete <branchname>
Delte Branch On Local
git branch -d <branchname>
Create Branch On Local
git checkout -b <branchname>
Merge branch
git merge <branchname> # make sure you are at the branch and merge the other branch
```
## Creating file
```bash
cat > <filaname>
vim <filename>
touch <filename>
```
|