Last active
August 29, 2015 13:56
-
-
Save ryo-utsunomiya/9263867 to your computer and use it in GitHub Desktop.
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/sh | |
# @see https://github.com/hatena/Git-for-Designers | |
# @see http://blog.asial.co.jp/845 | |
read -p "user name: " name | |
git config --global user.name "`echo $name`" | |
read -p "user email: " email | |
git config --global user.email "`echo $email`" | |
git config --global core.editor vim | |
git config --global color.ui auto | |
#git config --global color.diff auto | |
#git config --global color.status auto | |
#git config --global color.branch auto | |
#git config --global color.grep auto | |
git config --global core.excludesfile $HOME/.gitignore | |
#git config --global push.default current | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.ci commit\ -v | |
git config --global alias.di diff | |
git config --global alias.br branch | |
#git config --global alias.puhs push | |
#git config --global alias.psuh push | |
#git config --global alias.pus push | |
#git config --global alias.puh push | |
#git config --global alias.pl '!git pull && git submodule update --init' | |
git config --global alias.hist 'log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short' | |
echo .DS_Store >> $HOME/.gitignore | |
echo Thumbs.db >> $HOME/.gitignore | |
echo "Git configuration completed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment