Skip to content

Instantly share code, notes, and snippets.

@deichcode
Created April 3, 2018 13:12
Show Gist options
  • Save deichcode/6e16c1c373d859dc7ddc84d2d897ef0f to your computer and use it in GitHub Desktop.
Save deichcode/6e16c1c373d859dc7ddc84d2d897ef0f to your computer and use it in GitHub Desktop.
My personal .gitconfig
[alias]
tree = log --all --graph --decorate=short --color --format=format:'%C(bold blue)%h%C(reset) %C(auto)%d%C(reset)\n %C(auto)[%cr]%C(reset) %x09%C(normal)%an: %s %C(reset)'
logx = log --all --graph --decorate=short --color --format=format:'%C(bold blue)%h%C(reset)+%C(dim black)(%cr)%C(reset)+%C(auto)%d%C(reset)++\n+++ %C(bold black)%an%C(reset)%C(black): %s%C(reset)'
nf = "!sh -c \"git checkout develop && git pull && git checkout -b feature/$1 && git push --set-upstream origin feature/$1\""
nh = "!sh -c \"git checkout master && git pull && git checkout -b hotfix/$1 && git push --set-upstream origin hotfix/$1\""
rbo = "!sh -c \"git fetch && git rebase \"$(git rev-parse --abbrev-ref --symbolic-full-name @{u})\"\""
[rerere]
enabled = true
[user]
name = Sören Schröder
email = soeren.schroeder@brickmakers.de
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment