How do I navigate my Windows folders like C drive in MSYS?
cd /c/ to access C: cd /d/ for D: etc.
cd /c/ to access C: cd /d/ for D: etc.
Windows is case-insensitive (more precisely, case-preserving). There is simply no possible way for two files to exist whose names only differ in case: two filenames which differ only in case are the same filename. Period. So, Git is walking the repository, checking out one file after the other, until it hits the first one of … Read more
Update (Aug-2016): This question is no longer relevant, as msys2 now comes with cygpath in its installation. … I’ll summarize my research here. The cygpath equivalent in MSYS is to use this command: { cd /c/some/path && pwd -W; } | sed ‘s”https://stackoverflow.com/”\\|g’ The problem with this approach is that it requires existing path, e.g. … Read more
The path is in the registry but usually you edit through this interface: Go to Control Panel -> System -> System settings -> Environment Variables. Scroll down in system variables until you find PATH. Click edit and change accordingly. BE SURE to include a semicolon at the end of the previous as that is the … Read more
Cygwin, Git Bash, and MSYS2 have a readymade utility called cygpath.exe just for doing that. Output type options: -d, –dos print DOS (short) form of NAMEs (C:\PROGRA~1\) -m, –mixed like –windows, but with regular slashes (C:/WINNT) -M, –mode report on mode of file (binmode or textmode) -u, –unix (default) print Unix form of NAMEs (/cygdrive/c/winnt) … Read more
As mentioned in issue 397: This is intended. We do not ship pacman with Git for Windows. If you are interested in a fully fledged package manager maintained environment you have to give the Git for Windows SDK a try. The bash that you see in the latest git for Windows (2.5.3), which is a … Read more
Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more
It is possible, albeit extremely awkward, to create a symbolic link in MSysGit. First, we need to make sure we are on Windows. Here’s an example function to check that: windows() { [[ -n “$WINDIR” ]]; } Now, we can’t do cmd /C, because MSysGit will fornicate with this argument and turn it into C:. … Read more
Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more
cd /c/ to access C: cd /d/ for D: etc.