如何在git中安装git subrepo,以供窗户运行bash shell
我知道有指令要安装 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要:
git
在您的$ path
.rc
file 已添加到您的.bashrc
(source/path/path/to/git-subrepo) /.rc'>>〜/.bashrc
,从git bash会话中完成)您可以使用常规的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会话:
op wiyosaya 做过(在注释):
touch〜/.bashrc
As long as:
git
is in your$PATH
.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:
The OP wiyosaya did (in the comments):
touch ~/.bashrc
echo source /c/GitHub/git-subrepo/.rc >> ~/.bashrc