Last active
August 24, 2020 20:50
-
-
Save caub/8ca233b11949d2bc3bc312528167dbc2 to your computer and use it in GitHub Desktop.
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
[user] | |
email = cyril.auburtin@gmail.com | |
name = caub | |
[alias] | |
a = add --all | |
au = add -u | |
b = branch | |
br = branch -r | |
amend = commit --amend -C HEAD | |
c = "!f() { git commit -m \"$*\"; }; f" | |
ca = commit --amend | |
cl = clone --single-branch --no-tags | |
clgh = "!f() { git clone --single-branch --no-tags git@github.com:$@; }; f" | |
cp = cherry-pick | |
cpa = cherry-pick --abort | |
cpc = cherry-pick --continue | |
d = diff | |
dp = diff --patience | |
dc = diff --cached | |
f = fetch | |
fo = fetch origin | |
fr = "!f() { git fetch origin $1:$1; git rebase $1; }; f" | |
g = grep -p | |
l = log --oneline | |
lg = log --oneline --graph --decorate | |
ls = ls-files | |
lsf = !git ls-files | grep -i | |
m = merge | |
mf = merge --ff-only | |
mff = merge --ff-only | |
ma = merge --abort | |
mc = merge --continue | |
ms = merge --skip | |
o = checkout | |
ob = checkout -b | |
p = push | |
pf = push -f | |
pl = pull --prune | |
rb = rebase | |
rba = rebase --abort | |
rbc = rebase --continue | |
rbi = rebase --interactive | |
rbs = rebase --skip | |
rehh = reset --hard HEAD | |
r = remote | |
ra = remote add | |
# rame = !git remote add me git@github.com:caub/$(basename $(git r get-url origin)) | |
rr = remote rm | |
rv = remote -v | |
rs = remote show | |
rn = remote rename | |
rao = remote add origin | |
rro = remote remove origin | |
s = status | |
sb = status -s -b | |
sw = stash show | |
st = !git stash list | wc -l 2>/dev/null | grep -oEi '[0-9][0-9]*' | |
subrepo = !sh -c 'git filter-branch --prune-empty --subdirectory-filter $1 master' - | |
human = name-rev --name-only --refs=refs/heads/* | |
deploy = !sh -c 'git fetch origin master:master && git co "${1:-dev}" && git pull -r && git mf master && git push && git co master' | |
[remote "origin"] | |
fetch = +refs/heads/master:refs/remotes/origin/master | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore | |
hooksPath = ~/.hooks | |
[pull] | |
rebase = true | |
[rebase] | |
autoStash = true | |
## work | |
# [includeIf "gitdir:~/dev/Foobar/"] | |
# path = ~/dev/Foobar/.gitconfig | |
# [credential] | |
# helper = cache --timeout=604800 | |
## ~/dev/Foobar/.gitconfig would contain: | |
# [commit] | |
# gpgsign = true | |
# [user] | |
# name = caub | |
# email = cyril.auburtin@foobar.ai | |
# signingkey = 123..AB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment