-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
57 lines (57 loc) · 1.48 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
[core]
editor = vim
excludesfile = ~/.gitignore
[help]
autocorrect = 1
[alias]
author = !sh -c 'git commit --amen --reset-author -Chead && git rebase --continue'
brs = for-each-ref --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)" refs/heads
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
put = !sh -c 'git push -u origin $(git rev-parse --abbrev-ref HEAD)'
putf = !sh -c 'git push -u origin $(git rev-parse --abbrev-ref HEAD) --no-verify'
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
redo = commit --amen -Chead
refrog = reflog
tree = log --graph --oneline --decorate --color --all
slurp = !sh -c 'git branch --merged | grep -v \"\\*\" | xargs -n 1 git branch -d'
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
; [branch]
; autosetuprebase = always
[push]
default = tracking
[advice]
statusHints = false
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[user]
name = "Kevin Altman"
email = "kevin@itsthatguy.com"
[credential]
helper = osxkeychain
[init]
defaultBranch = main