簡體   English   中英

如何在 Git 中為運行 bash shell 的 Windows 安裝 git 子倉庫

[英]How to install git subrepo in Git for Windows running bash shell

我知道這里有關於在 Git 中為 windows 安裝gitsubrepo說明

我知道我必須做什么,但是,我不知道在哪里可以找到 shell 啟動腳本。 我已經安裝了 Git Bash shell,我不知道它的 shell 啟動腳本在哪里。

有誰知道啟動腳本在哪里?

只要:

  • git在你的$PATH
  • git subrepo .rc文件已添加到您的.bashrcsource /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做了(在評論中):

  • 創建.bashrc: touch ~/.bashrc
  • 添加缺少的行: echo source /c/GitHub/git-subrepo/.rc >> ~/.bashrc

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM