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

Git 别名

时间:2017-08-16 21:56:50      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:使用   查看   unset   bsp   别名   host   git   local   config   

Git 别名与 alias 一样,能够简化那些较长的命令,下面我们把 git log --pretty=oneline 做一个别名为 git lg

[root@localhost studygit]# git config --global alias.lg "log --pretty=oneline"    # 定义别名
[root@localhost studygit]# git lg                                                 # 使用别名     
[root@localhost studygit]# git config --list | grep alias                         # 查看别名
[root@localhost studygit]# git config --global --unset alias.ci                   # 删除别名

 

 

 

 

    

Git 别名

标签:使用   查看   unset   bsp   别名   host   git   local   config   

原文地址:http://www.cnblogs.com/pzk7788/p/7375422.html

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