Reputation: 5444
I have a windows dev environment our team members download that has an older version of msysgit and a bunch of the unix msys utilities ( zip, awk, bison, etc ) which we use so our builds run on both linux and windows.
Well the git is now old enough that git hub no longer supports it as well as other newer repositories.
If I install the available "MSys64 for windows 10 download" and also the MSysGit for windows 64 download I find they are not compatible as they seem to have conflicting DLLs or some such problem where I can't run both from the same shell.
Is there a version of MSys or MinGW that includes git and the unix like utilities so both can be in the path under the same "bash" shell ? that would be ideal. Or is there a way to ensure I have two compatible systems.
Ideally so I can tell a team member to download the bin folder on a windows 10 64 bit box, set permissions. Download the source, execute the build script and it works.
Upvotes: 1
Views: 339
Reputation: 1323793
Simply uncompress the latest Git for Windows portable archive PortableGit-2.19.0-64-bit.7z.exe
anywhere you want.
Then setup a simplified path in a CMD session.
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
set GIT_HOME=C:\Path\to\Git
set PATH=%GIT_HOME%;%GIT_HOME%\bin;%GIT_HOME%\usr\bin;%GIT_HOME%\mingw64\bin;%PATH%
(Add any other path you would need)
And type bash
: you will be in a shell with 200+ Linux commands, and Git itself.
The other approach is to activate WSL (Windows Subsystem for Linux), in which you can install a regular Git for Linux, and benefit from all Linux commands, without limitation.
Upvotes: 1