Last active
October 18, 2019 11:17
-
-
Save mathebox/9d313f1dc050cfcfab8154e8a46d8e97 to your computer and use it in GitHub Desktop.
my global git config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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