cfg/.gitconfig
Knut Ahlers f2f8ac9012
Add go get mappings
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-07 00:23:25 +02:00

62 lines
1.5 KiB
INI

[alias]
br = branch
changes=diff --name-status -r
ci = commit
co = checkout
df = diff
lg = "log --color --graph --pretty=format:'%Cred%h%Creset [%G?]%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
pp = "!sh -c 'git pull --rebase && git push'"
ri = rebase --interactive --autosquash
sign-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && git commit --amend -S --no-edit && while git rebase --continue; do git commit --amend -S --no-edit; done' -"
spps = "!sh -c 'git stash && git pull --rebase && git push && git stash pop'"
starecopu = "!sh -c 'git stash && git pull --rebase && git stash pop && git commit -am \"$0\" && git push'"
st = status
[branch]
autosetuprebase = always
[color]
branch = auto
diff = auto
status = auto
[commit]
gpgsign = true
[core]
bare = false
excludesfile = ~/.gitignore_global
filemode = true
logallrefupdates = true
pager = less -F -X
repositoryformatversion = 0
warnAmbiguousRefs = false
[diff]
renames = true
[gpg]
program = gpg2
[push]
default = upstream
gpgSign = if-asked
[receive]
denyNonFastForwards = true
[rerere]
enabled = true
[user]
email = knut@ahlers.me
name = Knut Ahlers
signingkey = D34BE99E
# Mappings for private repos and `go get`
[url "ssh://git@github.com/contentflow/"]
insteadOf = https://github.com/contentflow/
[url "ssh://git@github.com/Luzifer/"]
insteadOf = https://github.com/Luzifer/