gitgit-for-windowsgit-subrepo

How to install git subrepo in Git for Windows running bash 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?


Solution

  • As long as:

    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):