如何在git中安装git subrepo,以供窗户运行bash shell

发布于 2025-01-21 09:54:28 字数 374 浏览 1 评论 0原文

我知道有指令要安装 gitsubrepo for Windows for Windows 在这里

我了解我要做什么,但是,我不知道在哪里可以找到Shell启动脚本。我已经安装了git bash shell,我对其Shell启动脚本所在的位置感到不知所措。

有人知道启动脚本在哪里吗?

I know there are instructions to install gitsubrepo in Git for windows here.

I understand what I have to do, however, I do not know where to find the shell startup script. I have installed the Git Bash shell, and I am at a loss for where its shell startup script is located.

Does anyone know where the startup script is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪痕残 2025-01-28 09:54:28

只要:

您可以使用常规的git-bash shell,然后开始键入git subrepo命令。

“ shell启动配置”是.rc文件,它是将存储库克隆的位置(in /c/path/to/your/git-subrepo/clone git bash session)

如果您克隆C:\ users \ me \ me \ git-subrepo,则需要输入bash会话:

source /c/Users/Me/git-subrepo/.rc' >> ~/.bashrc

op wiyosaya 做过(在注释):

  • 创建.bashrc:touch〜/.bashrc
  • .rc>> 〜/.bashrc

As long as:

  • git is in your $PATH
  • git subrepo .rc file has been added to your .bashrc (source /path/to/git-subrepo/.rc' >> ~/.bashrc, done from a git bash session)

You can use a regular git-bash shell, and start typing git subrepo commands.

The "shell startup configuration" is the .rc file which is where you have cloned the repository (in /c/path/to/your/git-subrepo/clone within a git bash session)

If you clone in C:\Users\Me\git-subrepo, you would need to type in a bash session:

source /c/Users/Me/git-subrepo/.rc' >> ~/.bashrc

The OP wiyosaya did (in the comments):

  • create the .bashrc: touch ~/.bashrc
  • add the missing line: echo source /c/GitHub/git-subrepo/.rc >> ~/.bashrc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文