Git-subrepo: Install on windows instructions

Created on 29 May 2017  路  3Comments  路  Source: ingydotnet/git-subrepo

On Windows one does generally use git bash but just git as a global command in path. I see there's a method to install subrepo as a sub command of git via Makefile but Make is generally not installed on Windows. A set of instructions on how to install it manually on Windows would be really useful.

Enhancement

Most helpful comment

I can comment on this. Mostly this is in the installation instructions.

  1. Clone git-subrepo. Checkout the release branch (currently release/0.4.0)
  2. In control panel --> system --> advanced --> environment variables, create a new environment variable GIT_SUBREPO_ROOT and set it to the location where you cloned git-subrepo
  3. While you are adding environment variables, also update your PATH to include the location of git-subrepo and the location of git-subrepo/lib
  4. Close any open shell windows and reopen them, or to be really sure that you get the updated path, reboot.
  5. Open a fresh shell window (cmd.exe) and try "git subrepo".

All 3 comments

I can comment on this. Mostly this is in the installation instructions.

  1. Clone git-subrepo. Checkout the release branch (currently release/0.4.0)
  2. In control panel --> system --> advanced --> environment variables, create a new environment variable GIT_SUBREPO_ROOT and set it to the location where you cloned git-subrepo
  3. While you are adding environment variables, also update your PATH to include the location of git-subrepo and the location of git-subrepo/lib
  4. Close any open shell windows and reopen them, or to be really sure that you get the updated path, reboot.
  5. Open a fresh shell window (cmd.exe) and try "git subrepo".

do we need/have a PR to ammend the docs as per @skelliam suggestion?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kohlhase picture kohlhase  路  3Comments

psorowka picture psorowka  路  5Comments

hassec picture hassec  路  5Comments

danielbsig picture danielbsig  路  7Comments

csteinlehner picture csteinlehner  路  12Comments