Git Cheat Sheet: by Via
Git Cheat Sheet: by Via
Git - History
List remotes
cd project_dir
git log
git remote -v
git init
Short Format
Show information
git add .
Patches
Add remote
git log -p
Fetch changes
Fetch + merge
Stats
git status
git diff
Publish tags
Git - Merge/Rebase
Remove file
git rm file
Git - Branching/Tagging
git rm dir/ -r
List branches
git branch
Switch to branch
Abort rebase
Commit changes
git commit
git mergetool
Delete branch
Sponsored by Readability-Score.com
cheatography.com/samcollett/
www.texotela.co.uk
Page 1 of 1.
https://readability-score.com