-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
37 lines (36 loc) · 1.27 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
[init]
defaultBranch = main
[push]
default = current
[color]
ui = true
[alias]
aa = add --all
ap = add --patch
remote-branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
brs = ! git for-each-ref --sort='authordate:iso8601' --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/heads | fzf --tac --bind 'enter:execute(echo {} | rev | cut -f1 | rev | xargs git checkout)+abort,tab:execute-silent(echo {} | rev | cut -f1 | rev | pbcopy)+abort'
br = branch
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
unstage = reset HEAD --
last = log -1 HEAD
d = ! git status -s | fzf --no-sort --reverse --preview 'git diff --color=always {+2} | diff-so-fancy' --bind=ctrl-j:preview-down --bind=ctrl-k:preview-up --preview-window=right:60%:wrap
[core]
excludesfile = ~/.gitignore
autocrlf = input
untrackedCache = true
pager = diff-so-fancy | less --tabs=4 -RFX
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[rebase]
autosquash = true
[url "[email protected]:"]
followRedirects = true
[include]
path = ~/.gitconfig.local