Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2018 02:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
my global gitconfig
protocol = https
name = <name>
email =
ad = add
br = branch
ci = commit -a
co = checkout
cm = checkout master
conf = config
f = fetch
fo = fetch origin
ftp = fetch --tags --prune
graph = log --graph --pretty='format:%h %Cgreen%an%Creset | %s %Cred%d%Creset'
kc = commit
lg = log --graph --pretty=oneline --decorate --date=short --abbrev-commit --branches
pb = !git push origin $(git rev-parse --abbrev-ref HEAD)
pbu = !git push n $(git rev-parse --abbrev-ref HEAD)
pbf = !git push --force origin $(git rev-parse --abbrev-ref HEAD)
pbfu = !git push --force n $(git rev-parse --abbrev-ref HEAD)
pr = pull --rebase
rc = rebase --continue
ro = rebase origin
sh = show
so = remote show origin
st = status
su = !git branch -u origin $(git rev-parse --abbrev-ref HEAD)
up = !git pull origin $(git rev-parse --abbrev-ref HEAD)
upu = !git pull n $(git rev-parse --abbrev-ref HEAD)
wd = diff --word-diff
cleanup = !git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d
autosetupmerge = true
branch = auto
diff = auto
grep = auto
interactive = auto
ui = auto
status = auto
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
process = git-lfs filter-process
default = matching
root = ~/github
path = .gitconfig.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment