Bash in Git for Windows: Weirdness when running a command with CMD.exe /C with args

This is actually documented in the ReleaseNotes file (in the top level folder of your installed Git for Windows) Also, extra care has to be paid to pass Windows programs Windows paths, as they have no clue about MSys style POSIX paths — You can use something like $(cmd //c echo “$POSIXPATH”). If you use … Read more

Git Bash – string parameter with ‘/’ at start is being expanded to a file path. How to stop this?

The release notes to the Git Bash 2.21.0 update today mentioned this as a known issue. Fortunately, they also described two solutions to the problem: If you specify command-line options starting with a slash, POSIX-to-Windows path conversion will kick in converting e.g. “/usr/bin/bash.exe” to “C:\Program Files\Git\usr\bin\bash.exe”. When that is not desired — e.g. “–upload-pack=/opt/git/bin/git-upload-pack” or … Read more

Pipenv with Conda?

You can setup Pipenv to use Conda’s Python executable and site packages directory (ref). pipenv –python=$(conda run which python) –site-packages You can check if you are indeed using your Conda environment in Pipenv: pipenv run python >>> import sys >>> sys.executable, sys.path # <directories under your Conda environment> With NumPy installed through Conda, but not … Read more