我知道這里有在 Git for windows中安裝gitsubrepo的說明。
我明白我必須做什么,但是,我不知道在哪里可以找到 shell 啟動腳本。我已經安裝了 Git Bash shell,我不知道它的 shell 啟動腳本在哪里。
有誰知道啟動腳本在哪里?
uj5u.com熱心網友回復:
只要:
git在你的$PATH- git subrepo
.rc檔案已添加到您的.bashrc(source /path/to/git-subrepo/.rc' >> ~/.bashrc,從 git bash 會話完成)
您可以使用常規的 git-bash shell,然后開始輸入git subrepo命令。
“shell 啟動配置”是.rc您克隆存盤庫的檔案(在/c/path/to/your/git-subrepo/clonegit bash 會話中)
如果您在 C:\Users\Me\git-subrepo 中克隆,則需要輸入 bash 會話:
source /c/Users/Me/git-subrepo/.rc' >> ~/.bashrc
OP wiyosaya做了(在評論中):
- 創建.bashrc:
touch ~/.bashrc - 添加缺少的行:
echo source /c/GitHub/git-subrepo/.rc >> ~/.bashrc
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/458830.html
