Skip to content

Instantly share code, notes, and snippets.

@mathebox
Last active October 18, 2019 11:17
Show Gist options
  • Save mathebox/9d313f1dc050cfcfab8154e8a46d8e97 to your computer and use it in GitHub Desktop.
Save mathebox/9d313f1dc050cfcfab8154e8a46d8e97 to your computer and use it in GitHub Desktop.
my global git config
[color]
ui = true
[fetch]
prune = true
[push]
default = simple
[diff]
noprefix = true
[alias]
unstage = reset HEAD --
st = status
cl = clone
ci = commit
co = checkout
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%an]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%an]" --decorate --numstat
d = diff
ds = diff --staged
ca = commit --amend
au = add -u .
f = fetch
ap = add -p
sl = shortlog -sn --no-merges
pff = pull --ff-only
dw = diff --word-diff=color
dsw = diff --staged --word-diff=color
b = branch
ba = branch -a
merged-branches = "!git branch -v | grep gone | cut -d' ' -f3"
mb = "!git merged-branches"
discard = checkout head --
disa = checkout head -- .
[core]
autocrlf = input
excludesfile = <path/to/your/global/gitignore>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment