摘要: 1.进入你的home目录 cd ~ 2.编辑.bashrc文件 vi .bashrc 3. 将下面的代码加入到文件的最后处 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"` 阅读全文
posted @ 2020-06-12 10:16 蜕变C 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 在linux中git安装后颜色是不自动设置的。 下面的命令设置git的颜色: git config --global color.status autogit config --global color.diff autogit config --global color.branch autogi 阅读全文
posted @ 2020-06-12 09:59 蜕变C 阅读(1428) 评论(0) 推荐(0) 编辑