Git Bash for Windows (v 4.4.19) mounts "C:/Program Files/Git
" as "/
" and mounts "C:/Program Files/Git/usr/bin
" as "/bin
"
This means that /usr/bin
and /bin
are being mounted to the same exact underlying Windows folder. This creates a problem because bash
and git
are not recognized unless I add /c/Program Files/git/cmd
directly to my PATH.
Is there a config file to change this? Why is the same folder being mounted twice?
In order to navigate to a different drive/directory you can do it in convenient way (instead of typing cd /e/Study/Codes), just type in cd[Space], and drag-and-drop your directory Codes with your mouse to git bash, hit [Enter]. Save this answer.
Browse to the desired Directory through Commands in Git Bash Open your Git Bash. Type the following command cd <path of the directory> and press enter. See that the directory has been changed.
To change this current working directory, you can use the "cd" command (where "cd" stands for "change directory"). For example, to move one directory upwards (into the current folder's parent folder), you can just call: $ cd ..
Having /bin
linked to /usr/bin
is something that is now also being done on a number of linux and unix distributions. You can read the rational for that here: https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With