![](/img/trans.png)
[英]How do i install bash-git-prompt in Git For Windows bash shell?
[英]How to install git subrepo in Git for Windows running bash shell
我知道這里有關於在 Git 中為 windows 安裝gitsubrepo的說明。
我知道我必須做什么,但是,我不知道在哪里可以找到 shell 啟動腳本。 我已經安裝了 Git Bash shell,我不知道它的 shell 啟動腳本在哪里。
有誰知道啟動腳本在哪里?
只要:
git
在你的$PATH
中.rc
文件已添加到您的.bashrc
( source /path/to/git-subrepo/.rc' >> ~/.bashrc
,從 git bash 會話完成) 您可以使用常規的 git-bash shell,然后開始鍵入git subrepo
命令。
“shell 啟動配置”是您克隆存儲庫的.rc
文件(在 git bash 會話中的/c/path/to/your/git-subrepo/clone
中)
如果你克隆 C:\Users\Me\git-subrepo,你需要輸入 bash session:
source /c/Users/Me/git-subrepo/.rc' >> ~/.bashrc
OP wiyosaya做了(在評論中):
touch ~/.bashrc
echo source /c/GitHub/git-subrepo/.rc >> ~/.bashrc
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.