Skip to content

Instantly share code, notes, and snippets.

@liuggio
Last active December 26, 2015 07:19
Show Gist options
  • Save liuggio/7114650 to your computer and use it in GitHub Desktop.
Save liuggio/7114650 to your computer and use it in GitHub Desktop.
git init
.idea
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
git config --global --add user.email "liuggio@gmail.com"
git config --global alias.ch checkout
git config --global alias.br branch
git config --global alias.co commit
git config --global alias.st status
git config --global alias.last 'log -1 HEAD'
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global pretty.graph '%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
git config --global alias.lg 'log --pretty=graph --graph --abbrev-commit --'
git config --global core.excludesfile ~/.gitignore_global
git config --global url."git@github.com:".insteadOf "https://github.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment