Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/bin and /usr/bin both being mounted to same location in Git Bash

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?

like image 726
drz Avatar asked Oct 12 '18 16:10

drz


People also ask

How do I move to a different drive in Git bash?

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.

How do I go to a specific directory in git bash?

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.

How do I change directory in git?

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


1 Answers

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/

like image 122
Gary van der Merwe Avatar answered Oct 16 '22 16:10

Gary van der Merwe