Git
Basics
Bare basics semantic versioning https://semver.org/ clone git clone <url> clone an arbitrary rep...
Stash / Worktree
git stash git worktree git gitkraken use add new worktree git worktree add <path> <branch> --for...
Merge, Rebase, Reset, Clean
merge vs rebase https://www.atlassian.com/git/tutorials/merging-vs-rebasing Make the current Git ...
Hooks
git hooks pre-commit-msg This example adds the branch name as prefix to the commit message: crea...
GUI / visualize
CLI ui show logs in a graph git log --oneline --graph --color --all --decorate for linux use alia...
Github / Gitlab
Common create patch from commit add .patch for a patch file or .diff for a plain diff file as...
Special usecases
rename branch git checkout <old_name> git branch -m <new_name> (move/rename the local branch)...