博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git命令缩写配置
阅读量:4189 次
发布时间:2019-05-26

本文共 572 字,大约阅读时间需要 1 分钟。

git config --global alias.st status

git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.lg "log --color -graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" 
git config --global alias.submit "push origin master"
在shell命令行下敲入以上命令,则自动添加到home路径下的.gitconfig:
[alias]
    st = status
    ... 

.gitconfig 中常用的配置还有:

[user]

      email = yourname@aaa.com

      name = your name

[merge]

     ff =false

[credentail]

     helper = store     表示自动保存用户名和米饭,后续clone时无需再输入。

 

转载地址:http://jusoi.baihongyu.com/

你可能感兴趣的文章
《给初学者的Windows Vista的补遗手册》之035
查看>>
Spring开发指南 0.8 发布
查看>>
Mac OS X 10.4.7 DMG 文件如何转化成ISO文件
查看>>
线程的优先级
查看>>
Khronos 官方新闻 Windows Vista 和 OpenGL 的事实 ZT
查看>>
HLSL编程实现PhotoShop滤镜效果
查看>>
如果我恨一个人,我就领他到中关村买相机。
查看>>
装ubuntu碰到一件BT的事情
查看>>
关于NVIDIA 的 OpenGL回退到软件模式的问题。
查看>>
OpenGL和D3D中Cubemap的图象方向问题
查看>>
XREAL3D开发转移到csdn的svn服务器上。
查看>>
Mozilla XULRunner 的编译。
查看>>
GUISystem设计思路之三:HotArea的概念。
查看>>
GUI设计思路之二:Blender -- WinstateBlender/WinTransBlender
查看>>
新瓶灌旧酒,Hugo老师的Fire算法的GPU版本.
查看>>
前世,是谁埋的我。
查看>>
J2ME技术实现的RPG游戏的DEMO(含源代码)
查看>>
J2ME开发中常见属性(Property)及其作用列表
查看>>
【文章汇总】J2ME程序开发全方位基础讲解
查看>>
MIDP2.1规范文档
查看>>