Last active
April 8, 2023 00:50
-
-
Save apzentral/a9f235c0a5e18953a602d7d606310ea9 to your computer and use it in GitHub Desktop.
gitconfig
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
# 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