-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
48 lines (48 loc) · 1.55 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
[include]
# Kept in 1Password. Contains default email, GitHub username, token, etc., inspired by http://stackoverflow.com/questions/8505335/hiding-github-token-in-gitconfig
path = ~/.gitconfig.local
[http]
# Kept in 1Password.
cookiefile = ~/.gitcookies
[core]
excludesfile = ~/.gitignore_global_macos
editor = code -w
[color]
ui = auto
[alias]
st = status
ci = commit
co = checkout
cp = cherry-pick
credit = blame
staged = diff --staged
unstage = reset HEAD
l = log --graph --pretty='%h %ad%Cgreen%d%Creset %Cred%an%Creset %s' --decorate=short --date=relative
lall = log --graph --pretty='%h %ad%Cgreen%d%Creset %Cred%an%Creset %s' --decorate=short --date=relative --all
b = for-each-ref --sort='-committerdate' refs/heads/ --format='%(committerdate:short) %(refname:short)'
rb = for-each-ref --sort='committerdate' refs/remotes/ --format='%(committerdate:short) %(refname:short) (%(authorname))'
pushm = push origin main
pullm = !git fetch origin && git rebase --rebase-merges origin/main
pullall = !git pull && git submodule update --init --recursive
ri = rebase --interactive
rc = rebase --continue
sl = stash list
sd = stash drop
[mergetool]
# No `.orig` files.
keepBackup = false
[push]
# So I can't do a bare git push (must specify the origin branch)
default = nothing
[difftool]
prompt = false
[diff]
tool = opendiff
[credential]
helper = osxkeychain
[filter "lfs"]
# This section was added automatically when installing GitHub Desktop
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true