-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
67 lines (65 loc) · 1.87 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
[user]
name = Jacek Galanciak
email = [email protected]
[mergetool]
keepBackup = true
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[help]
autocorrect = 1
[status]
submodule = 1
[push]
# Only push branches that have been set up to track a remote branch.
default = current
[apply]
whitespace = warn
[interactive]
diffFilter = delta --color-only --dark
[alias]
co = checkout
# Alternate log display from Scott Chacon
lol = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
l = log --pretty=format:'%Cred%h%Creset %Cgreen%cr %C(bold blue)%an%Creset%C(yellow)%d%Creset %s'
unstage = reset HEAD
staged = diff --cached
unstaged = diff
current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
track = checkout -t
st = status
ci = commit
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
r = !git l -20
ra = !git r --all
fa = fetch --all
pullff = pull --ff-only
ff = merge --ff-only
up = pull --rebase --autostash
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
sw = !git checkout $(git branch -a --format '%(refname:short)' | sed 's~origin/~~' | sort | uniq | fzf)
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|main' | xargs -n 1 git branch -d"
rubocop = "!git diff --name-only --diff-filter=d master... | xargs bundle exec rubocop \"$@\""
[merge]
tool = vimdiff
[core]
pager = delta --dark
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
[gpg]
program = /usr/local/MacGPG2/bin/gpg
[fetch]
prune = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[init]
defaultBranch = master