Git Commands
Show status
Show commit logs
Show compact log
Show unstaged changes
Show staged changes
Stage file
Stage all changes
Commit with message
Stage and commit tracked files
Amend last commit
List branches
Create branch
Switch branch
Create and switch branch
Delete branch
Merge branch
List remotes
Fetch remote changes
Pull from remote
Push to remote
Push and set upstream
Clone repository
Discard changes in file
Unstage file
git restore --staged <file>
Undo last commit (keep changes)
Undo last commit (discard changes)
Revert commit
Stash changes
List stashes
Apply and remove stash
Apply stash (keep it)
Delete stash
Visual branch history
git log --graph --oneline --all
Last 5 commits
Commits by author
Show commit details