-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
39 lines (38 loc) · 1.76 KB
/
dot_gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[user]
name = florentinadolf
signingkey = 1E9880FEBBB00250
email = [email protected]
[alias]
sign = commit --amend --no-edit -S
alias = ! git config -l | grep alias
br = branch
branch-cleanup = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -n 1 git branch -d; }; f"
co = checkout
ci = commit -v
co = checkout
cm = commit -m
csm = commit -s -m
ds = diff --staged
di = diff
fetchall = fetch -v --all
log-fancy = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
lg-wo-committer = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ci) %C(cyan)%Creset' --abbrev-commit --date=relative
lg = ! git log-fancy
log-me = !UN=$(git config user.name)&& git log --author="\"$UN\"" --pretty=format:'%h %cd %s' --date=short
log-nice = log --graph --decorate --pretty=oneline --abbrev-commit
panic = !tar cvf ../git_panic.tar *
st = status
wdiff = diff --word-diff=plain
wd = ! git wdiff
squash-msg = "!f() {\
printf '%s\n\n' 'Squashed commit of the following:'; \
git log --no-merges --format=reference ${1}~1..HEAD; }; f"
# Usage: git signoff-rebase [base-commit]
signoff-rebase = "!EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while test -f .git/rebase-merge/interactive; do git commit --amend --signoff --no-edit && git rebase --continue; done' -"
# Ideally we would use GIT_SEQUENCE_EDITOR in the above instead of EDITOR but that's not supported for git < 1.7.8.
[commit]
gpgsign = true
[gpg]
program = gpg2
[init]
templateDir = /home/florentinadolf/.git-template