Skip to content

Instantly share code, notes, and snippets.

@apzentral
Last active April 8, 2023 00:50
Show Gist options
  • Save apzentral/a9f235c0a5e18953a602d7d606310ea9 to your computer and use it in GitHub Desktop.
Save apzentral/a9f235c0a5e18953a602d7d606310ea9 to your computer and use it in GitHub Desktop.
gitconfig
# INCLUDES
# --------
# Local/Private config goes in the include
[include]
path = ~/.gitconfig.local
[core]
editor = /usr/bin/vim
excludesFile = ~/.gitignore
longpaths = true
autocrlf = true
[help]
autocorrect = 20
[pull]
rebase = false
[alias]
s = status -sb
ss = status -sb
p = pull
pu = pull
ph = push
f = fetch origin
b = branch
ba = branch -v -a
bv = branch -vv
ll = log --oneline
last = log -1 HEAD --stat
a = add -i
cm = commit -m
co = checkout
sw = switch
me = merge
st = stash
stl = stash list
stp = stash pop
rv = remote -v
d = diff
dm = diff master...
dv = difftool -t vimdiff -y
ds = diff --staged
gl = config --global -l
ge = config --global -e
se = !git rev-list --all | xargs git grep -F
pa = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment