-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitconfig
38 lines (38 loc) · 1.42 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
[user]
email = [email protected]
name = Devon Peticolas
[color]
ui = true
[color "status"]
added = bold
changed = normal
untracked = dim
[diff]
tool = vimdiff
[alias]
b = branch --sort=-committerdate --format='%(refname:short) %(color:dim)(%(committerdate:relative))' --color=always
cb = "!f(){ git checkout $(git b | fzf --ansi --nth=1 | cut -d' ' -f1);};f"
co = checkout
d = diff --compact-summary
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr(, 1, length()-1), )}'
pr = "!f(){ gh pr view --web || gh pr create --fill --web;};f"
prs = "!f(){ watch --color gh pr status;};f"
s = status
sup = submodule update --init --recursive
ten = !git --no-pager log -10 --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
actions = "!f(){ open \"$(gh repo view --json url -q '.url')/actions?query=branch%3A$(git branch --show-current)\"; }; f"
[push]
default = current
autoSetupRemote = true
[web]
browser = open
[branch]
autosetuprebase = always
[pull]
rebase = true
default = current
#[submodule]
# recurse = true
[core]
excludesfile = ~/.gitignore