Created
February 12, 2019 05:06
-
-
Save yuuichi-fujioka/11faf962ac1b83a45f03d27380ade454 to your computer and use it in GitHub Desktop.
my git setting
This file contains hidden or 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
#!/bin/bash | |
git config --global core.editor 'vim -c "set fenc=utf-8"' | |
ls ~/.config/git 2>/dev/null >/dev/null || mkdir -p ~/.config/git | |
cat << __EOF__ > ~/.config/git/gitignore | |
.idea | |
tags | |
TAGS | |
*.swp | |
.venv | |
.venv3 | |
.tox | |
TAGS | |
tags | |
*.swp | |
*~ | |
.testrepository | |
/pbr-* | |
doc/source/api | |
AUTHORS | |
ChangeLog | |
*.pyc | |
.eggs | |
a.out | |
.tmp | |
*.log | |
.ksonnet | |
hoge.sh | |
.vscode | |
__EOF__ | |
git config --global core.excludesfile ~/.config/git/gitignore | |
git config --global color.ui true | |
git config --global alias.tr "log --graph --pretty='format:%C(yellow)%h%Creset %s %Cgreen(%an)%Creset %Cred%d%Creset'" | |
git config --global push.default matching | |
git config --global alias.log-all "log --pretty=fuller" | |
git config --global alias.release "for-each-ref --sort=-taggerdate --format='%(taggerdate:short) %(tag) %(taggername) %(subject)' refs/tags" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment