Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created October 1, 2018 02:34
Show Gist options
  • Save n0ts/28310855fffe33787495302d52c020c8 to your computer and use it in GitHub Desktop.
Save n0ts/28310855fffe33787495302d52c020c8 to your computer and use it in GitHub Desktop.
my global gitconfig
[hub]
protocol = https
[user]
name = <name>
email = n0ts@users.noreply.github.com
[alias]
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
[branch]
autosetupmerge = true
[color]
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
[push]
default = matching
[ghq]
root = ~/github
[include]
path = .gitconfig.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment