git-subrepo icon indicating copy to clipboard operation
git-subrepo copied to clipboard

Install on windows instructions

Open carlokok opened this issue 7 years ago • 4 comments

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.

carlokok avatar May 29 '17 06:05 carlokok

Related to Issue https://github.com/ingydotnet/git-subrepo/issues/209

skelliam avatar Mar 15 '18 21:03 skelliam

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".

skelliam avatar Mar 16 '18 14:03 skelliam

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

ConradBraam avatar Aug 06 '18 15:08 ConradBraam

@skelliam's instructions work and should make it to the main README. One caveat is that you got to be working with / instead of \ when adding a subrepo.

erikMagnussonSoftware avatar Jan 05 '24 07:01 erikMagnussonSoftware