Git config 缩写配置

初次安装运行Git,建议在命令行中运行以下命令,配置缩写和颜色,可以有效提高效率

[html]  view plain copy
  1. git config --global --add user.email "mebusw@163.com"    
  2. git config --global --add user.name "mebusw"  
  3. git config --global alias.co checkout  
  4. git config --global alias.br branch  
  5. git config --global alias.ci commit  
  6. git config --global alias.st status  
  7. git config --global alias.last 'log -1 HEAD'  
  8. git config --global color.diff auto  
  9. git config --global color.status auto  
  10. git config --global color.branch auto  
  11. git config --global alias.co checkout  
  12. git config --global merge.tool kdiff3  
  13. git config --global meregtool.kdiff3.path "/usr/bin/kdiff3"  
  14. git config --global alias.visual "!gitk"  


建立文件~/.gitignore_global

[html]  view plain copy
  1. #compiled source #  
  2. ###################  
  3. *.com  
  4. *.class  
  5. *.dll  
  6. *.exe  
  7. *.o  
  8. *.so  
  9. *.pyc  
  10.   
  11. # Packages #  
  12. ############  
  13. # it's better to unpack these files and commit the raw source  
  14. # git has its own built in compression methods  
  15. *.7z  
  16. *.dmg  
  17. *.gz  
  18. *.iso  
  19. *.jar  
  20. *.rar  
  21. *.tar  
  22. *.zip  
  23.   
  24. # Logs and databases #  
  25. ######################  
  26. *.log  
  27. *.sql  
  28. *.sqlite  
  29.   
  30. # OS generated files #  
  31. ######################  
  32. .DS_Store*  
  33. ehthumbs.db  
  34. Icon?  
  35. Thumbs.db  
  36. .svn  
  37. *.bak  
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值