看板 Editor 關於我們 聯絡資訊
※ 引述《splasky (splasky)》之銘言: : 4.在windows下使用git bash 最後會顯示目前所在git的branch分支 : 例如: ~/aaaa/aaa (master) : linux Terminal 下也可以作到嘛? : 問題有點多 還請各位不吝賜教 : 謝謝 http://rgba.tumblr.com/post/520663635/including-current-git-branch-in-your-bash-prompt 照這個去改 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.252.204.103 ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1457260400.A.944.html
goldie: git官方source包裡也有現成類似的script, source它,並加些 03/13 10:23
goldie: 東西到~/.bashrc即可. 03/13 10:23
goldie: git clone https://github.com/git/git.git 03/13 10:23
goldie: 在 contrib/completion/git-prompt.sh 內有使用說明. 03/13 10:23