其他分享
首页 > 其他分享> > GIT 显示版本库, 自动匹配代码

GIT 显示版本库, 自动匹配代码

作者:互联网

原文链接:http://www.cnblogs.com/showblog/archive/2012/03/31/2426401.html

安装GIT后在bashrc下面增加以下三行:

export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true

将在操作GIT库时显示版本库, 并且自动匹配GIT命令

转载于:https://www.cnblogs.com/showblog/archive/2012/03/31/2426401.html

标签:www,GIT,匹配,版本,showblog,PS1,2426401,archive
来源: https://blog.csdn.net/weixin_30765319/article/details/98202080