Skip to content

Instantly share code, notes, and snippets.

@hao-ji-xing
Created July 3, 2013 09:21
Show Gist options
  • Save hao-ji-xing/5916598 to your computer and use it in GitHub Desktop.
Save hao-ji-xing/5916598 to your computer and use it in GitHub Desktop.
git 常用配置
[alias]
cia = "! bash -c \"git commit -a -m \\\"$*\\\" && git push\""
go = "! bash -c \"git add . && git commit -m \\\"$*\\\" && git push\""
#compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
# 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*
ehthumbs.db
Icon?
Thumbs.db
.svn
*.bak
git config --global --add user.email "[email protected]"
git config --global --add user.name "darfe"
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci 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 alias.co checkout
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 --'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment