-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
45 lines (45 loc) · 1.41 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
34
35
36
37
38
39
40
41
42
43
44
45
[core]
excludesfile = /Users/richard.dowden/.gitignore_global
editor = /usr/local/bin/nvim
autocrlf = input
safecrlf = true
askpass = git-gui--askpass
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[help]
autocorrect = 10
[mergetool "sourcetree"]
cmd = /Users/richard.dowden/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
name = Richard Dowden
email = [email protected]
[credential]
helper = osxkeychain
[alias]
st = status
s = status
co = checkout
c = commit -v
b = branch
d = diff
p = pull
a = add
l = log
pushed = !git cherry -v `git symbolic-ref HEAD 2> /dev/null`
klog = log --graph --pretty=format:'%an: %s - %Cred%h%Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
stls = ls-files
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; nvim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
lc = log ORIG_HEAD.. --stat --no-merges
who = log --pretty='format:%Cgreen%an%Creset\t%C(yellow)%ar%Creset\t%s ' --no-merges
unstage = reset HEAD
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential