码迷,mamicode.com
首页 > 其他好文 > 详细

[Practical Git] Configure global settings with git config

时间:2016-08-12 06:43:33      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:

You can set up global "git config" settings that apply to all git projects on your system. In this lesson, we review how the ./gitconfig file works. We then add our own git config settings: username, email, editor, and git aliases.

There are many other git config commands that can be used, but this lesson shows you pattern behind them all so you can view and edit your own settings.

 

Alias:

git config --global alias.lg log --graph --oneline -p

 

Then use alias:

git lg

 

[Practical Git] Configure global settings with git config

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5763468.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!