skip to main content

Git

git stuff

Move unstaged changes to a new branch

git checkout -b <new-branch>
git add .
git commit -m "<commit description>"

Move unstaged changes to an existing branch

git stash
git checkout branch123
git stash apply

Colorful git log

log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit