堂Di

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年7月1日

摘要: 我们在终端操作git的时候,是可以实时的get到当前所在的分支的操作文件:~/.bash_profile加入以下代码:## Parses out the branch name from .git/HEAD:find_git_branch () { local dir=. head until ... 阅读全文
posted @ 2015-07-01 11:29 堂Di 阅读(488) 评论(0) 推荐(0) 编辑