Skip to content

Instantly share code, notes, and snippets.

@PatrickNausha
Last active September 5, 2021 17:43
Show Gist options
  • Save PatrickNausha/7201aafdbe7923b531b31e1c0f35492d to your computer and use it in GitHub Desktop.
Save PatrickNausha/7201aafdbe7923b531b31e1c0f35492d to your computer and use it in GitHub Desktop.
My gitconfig
[branch]
autosetuprebase = always
[alias]
co = checkout
st = status -s
lg = log --oneline --graph --color --decorate
cp = cherry-pick
lb = branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
up = !git fetch && git rebase --autostash FETCH_HEAD
[core]
autocrlf = false
[pull]
rebase = true
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment