-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
29 lines (25 loc) · 1.14 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
[user]
name = AJCorwin
email = AJCorwin@users.noreply.github.com
[branch]
autosetuprebase = always
[alias]
ci = commit
st = status
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
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/ajcorwin/.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
[credential]
helper = cache