Created
March 29, 2017 05:46
-
-
Save kibitan/19e913f60f24441b86070754e940031f to your computer and use it in GitHub Desktop.
.gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
excludesfile = ~/.gitignore_global | |
attributesfile = ~/.gitattributes | |
[hub] | |
protocol = https | |
[user] | |
name = kibitan | |
email = uzukifirst@gmail.com | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = true | |
diff = auto | |
status = auto | |
branch = auto | |
[alias] | |
st = status | |
stt = status --short --branch | |
showf = show --color-words | |
ci = commit | |
cim = commit --amend | |
cie = commit --allow-empty | |
cia = commit --allow-empty | |
aci = commit --allow-empty | |
eci = commit --allow-empty | |
br = branch -vv | |
br-d = !git branch -D $(git br | peco) | |
brm = branch -vv --merged | |
brm-d = !git branch --merged | grep -v \\* | xargs -I % git branch -d % | |
co = checkout | |
cop = checkout -p | |
coo = !git co $(git branch | peco) | |
cooa = !git co $(git branch -a | peco) | |
cof = !git co $(git status --porcelain | peco | sed -E 's/^[ ]+//g' | cut -d' ' -f2) | |
cp = cherry-pick | |
cpf = !branch_name=$(git branch -vv | peco | cut -d' ' -f 3) && git cherry-pick $( git log $branch_name --pretty=format:'%h %cd %cn %s %d' | peco | cut -d' ' -f 1 ) | |
mt = mergetool | |
pr = pull-request | |
pullr = pull --rebase | |
addp = add -p | |
addf = !git add $(git status --porcelain | peco | sed -E 's/^[ ]+//g' | cut -d' ' -f2) | |
addfp = !git add -p $(git status --porcelain | peco | sed -E 's/^[ ]+//g' | cut -d' ' -f2) | |
rmf = !git rm $(git status --porcelain | peco | sed -E 's/^[ ]+//g' | cut -d' ' -f2) | |
resetp = reset -p | |
resetf = !git reset $(git status --porcelain | peco | sed -E 's/^[ ]+//g' | cut -d' ' -f2) | |
logb = !git log $(git branch | peco) | |
logs = log --stat | |
loggg = shortlog -s -n --no-merges | |
logp = log -p | |
logpd = log -p --color-words | |
logg = log --graph --color --pretty=format:'%Cgreen%h %cd %Cred%cn %Creset%s %Cred%d' | |
loggb = !git log --graph --color --pretty=format:'%Cgreen%h %cd %Cred%cn %Creset%s %Cred%d' $(git br | peco) | |
loggs = log --graph --color --pretty=format:'%Cgreen%h %cd %Cred%cn %Creset%s %Cred%d' --stat | |
loggp = log -p --graph --color --pretty=format:'%Cgreen%h %cd %Cred%cn %Creset%s %Cred%d' | |
loggpd = log -p --graph --color --pretty=format:'%Cgreen%h %cd %Cred%cn %Creset%s %Cred%d' --color-words | |
difff = diff --color-words | |
diffw = diff -w | |
diffc = diff --cached | |
difffc = diff --cached --color-words | |
difffw = diff --cached -w | |
rebasec = rebase --continue | |
rebasea = rebase --abort | |
rebasei = rebase -i | |
pushf = push --force-with-lease | |
alias = "!f () { git config --get-regexp alias | cut -d'.' -f2 | if [ -z $1 ]; then cut -d' ' -f1 | sort | column; else grep $1' '; fi }; f" | |
[push] | |
default = current | |
[pager] | |
# log = diff-highlight | less | |
# show = diff-highlight | less | |
# diff = diff-highlight | less | |
log = diff-so-fancy | less | |
show = diff-so-fancy | less | |
diff = diff-so-fancy | less | |
[rerere] | |
enabled = true | |
[merge] | |
tool = vimdiff | |
[mergetool] | |
keepBackup = false | |
[gist-diff] | |
token = xxxx | |
[filter "media"] | |
required = true | |
clean = git media clean %f | |
smudge = git media smudge %f | |
[github] | |
user = kibitan | |
[ghi] | |
token = !security find-internet-password -a kibitan -s github.com -l 'ghi token' -w | |
[ghi "highlight"] | |
style = colorful | |
[filter "lfs"] | |
clean = git-lfs clean %f | |
smudge = git-lfs smudge %f | |
required = true | |
[ghq] | |
root = ~/www/ | |
[secrets] | |
providers = git secrets --aws-provider | |
patterns = [A-Z0-9]{20} | |
patterns = (\"|')?(AWS|aws|Aws)?_?(SECRET|secret|Secret)?_?(ACCESS|access|Access)?_?(KEY|key|Key)(\"|')?\\s*(:|=>|=)\\s*(\"|')?[A-Za-z0-9/\\+=]{40}(\"|')? | |
patterns = (\"|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?(\"|')?\\s*(:|=>|=)\\s*(\"|')?[0-9]{4}\\-?[0-9]{4}\\-?[0-9]{4}(\"|')? | |
allowed = xxxxx | |
allowed = xxxxx | |
[init] | |
templatedir = ~/.git-templates/git-secrets | |
[color "diff-highlight"] | |
oldNormal = red bold | |
oldHighlight = red bold 52 | |
newNormal = green bold | |
newHighlight = green bold 22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment