-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
33 lines (33 loc) · 1.06 KB
/
.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
[core]
excludesfile = ~/.gitignore_global
autocrlf = input
editor = /usr/local/bin/nvim
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[alias]
st = status
ci = commit
di = diff
co = checkout
amend = commit --amend
b = branch
r = reset
branch-commit = log --first-parent --no-merges
hist = log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
lastbranches = for-each-ref --sort=-committerdate refs/heads/
stash-rename = "!_() { rev=$(git rev-parse $1) && git stash drop $1 || exit 1 ; git diff-index --quiet HEAD; s=$?; [ $s != 0 ] && git stash save \"tmp stash from stash-rename\"; git stash apply $rev && shift && git stash save \"$@\" && [ $s != 0 ] && git stash pop stash@{1}; }; _"
[push]
default = simple
[help]
autocorrect = -1
[user]
name = Yann VR
email = [email protected]
[gpg]
program = gpg
[commit]
gpgsign = true