-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
30 lines (26 loc) · 1.01 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
[user]
name = absenth
email = [email protected]
signingkey = /Users/absenth/.ssh/id_ed25519.pub
[branch]
autosetuprebase = always
[alias]
ci = commit
st = status
graph = log --graph --all --pretty=format:"%h%x09%d%x20%s"
bradd = !sh -c 'git checkout main && git pull && git checkout -b "$1" main && git push -u origin "$1"' -
brpub = !sh -c 'git checkout main && git pull && git checkout "$1" && git rebase main && git push --force origin HEAD' -
brdel = !sh -c 'git checkout main && git pull && git branch --delete "$1" && git push origin --delete "$1"' -
brlint = !sh -c 'al -t $(git diff --name-only origin | egrep -i ya?ml$)'
[core]
excludesfile = /Users/lars.noldan/.gitignore_global
[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
[init]
defaultBranch = main
[gpg]
format = ssh