git配置
来源:互联网 发布:91助手mac电脑版 编辑:程序博客网 时间:2024/06/04 23:28
个人使用, 仅作为重装系统时,方便快速配置
配置文件位置:
Linux: ~/gitconfig
Windows: <安装目录>/etc/gitconfig <用户目录>/.gitconfig
1. git颜色配置
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
2. git默认编辑器设置
git config --global core.editor vim
3. git alias设置
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ct commit
git config --global alias.df diff
git config --global alias.br branch
自己的配置
[user] name = email = [color] diff = auto status = auto branch = auto interactive = true[alias] co = checkout ci = commit br = branch st = status lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit[core] editor = vim
参考: http://git-scm.com/book/zh/v1/%E8%87%AA%E5%AE%9A%E4%B9%89-Git-%E9%85%8D%E7%BD%AE-Git
0 0
- 自定义 Git - 配置 Git
- 【Git】Git配置
- git配置
- GIT 配置
- 配置 Git
- Git配置
- Git 配置
- git配置
- Git 配置
- git配置
- 配置 Git
- git配置
- Git配置
- git 配置
- git 配置
- git配置
- Git 配置
- Git 配置
- Django Template 路径配置
- Apache CXF实战之二 传输pojo对象
- Android中SQLite使用
- 最近的一些事
- 关于数组和指针
- git配置
- 图图相映,逻辑到来——UML视频总结
- Xcode7上使用autolayout
- oracle dblink方法
- .net总结
- 一边走路一边学习 关于struct和class的区别等几个知识点总结
- 洛谷P1739 表达式括号匹配解题报告
- Android 记住密码和自动登录界面的实现(SharedPreferences 的用法)
- Android ViewFlipper 使用