-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
69 lines (66 loc) · 1.86 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[user]
email = johnmikecip@gmail.com
name = John Cipriano
[core]
editor = vim
pager = less -S
excludesfile = /Users/John/.gitignore_global
[color]
ui = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[alias]
a = add
c = commit
cam = commit -am
cm = commit -m
d = diff
dc = diff --cached
k = checkout
kb = checkout -b
p = pull
r = reset
rh = reset head^
s = status
su = status --untracked-files
branch-name = rev-parse --abbrev-ref HEAD
branches = branch -avv --color
grandpa = merge-base HEAD main
ls = log --format='%C(yellow)%h %C(blue)%<(13,trunc)%an %Creset%s %C(red)%d' --date=short --reverse -20
new = diff --name-only --diff-filter=A main
shallow = clone --depth 1
unstage = reset HEAD
upstream = push --set-upstream --no-verify origin HEAD
gone = "!git fetch --prune && git branches | grep ': gone' | awk '{print $1}'"
prune-all = "!git prune && git remote prune origin"
publish = "!git push -u origin HEAD && hub pull-request"
rebase-main = "!git checkout main && git pull && git k - && git rebase main"
rebasei = "!git rebase -i `git grandpa`"
since = "!git rids origin/`git branch-name`..`git branch-name`"
push-all = "!git remote | xargs -L1 git push --all"
[init]
defaultBranch = main
[push]
default = upstream
[diff]
algorithm = histogram
compactionHeuristic = true
[pager]
branch = true
[rerere]
enabled = false
[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
[github]
user = johncip
[ghi]
token = !security find-internet-password -a johncip -s github.com -l 'ghi token' -w
[credential]
helper = osxkeychain