development is your working branch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- git pull // gets last updates from your branch
- git checkout BRANCH_NAME // changes your working branch
- git checkout -D BRANCH_NAME // deletes your branch both in local and remote environments
- git checkout -b development // creates a branch based on development
- git switch -c BRANCH_NAME // switches your branch and your changes
- git rebase development // updates your branch with your last changes of the based branch
- git rebase --continue
- git add FILE_NAME // adds your file to stage area
- git commit -m "YOUR_COMMENT" // commit your file with YOUR_COMMENT
- git revert commit_id -m 1
- git log | grep commit_id
- git stash
- git stash pop
- git stash apply
- git reset --hard
- git restore FILE_NAME
- git restore --staged FILE_NAME