Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created February 12, 2019 05:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuuichi-fujioka/11faf962ac1b83a45f03d27380ade454 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/11faf962ac1b83a45f03d27380ade454 to your computer and use it in GitHub Desktop.
my git setting
#!/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