3. Get details about command
git help "command name"/ git "command name" --help /(UNIX) man git "command name"
4. Check status of files/directories
git clone "https://github.com/name"
6. Add track for some files
7. Remove track for some files
git branch "name" / git checkout -b "name"
9. Pin changes in the branch
10. Change the name and files of the last commit
git commit --amend -m "new name"(optional)
12. Connect to remote repos
git remote add "local-name/(origin)" "https://github.com/reposName"
git push "name/(origin)" "branch/(master)"
git pull "name/(origin)" dev ==== git fetch + git merge
15. Change current branch
16. Go to the last other branch
17. Show difference with same file in other branch
git diff "other-branch" --"name.txt"
18. Show difference with same file in other branch
git diff "other-branch" --"name.txt"
19. Copy all commits from other branch
git branch -d "branch-name"
21. "F??? GO BACK..." (undo all commits)
git reset --hard "branch-name(master)"
22. Apply all fetched commits (Do it after "git fetch")