Where is the Git Bash `/` directory?
When I open Git Bash on Windows 7, the default directory is /
. It has *nix-style subdirectories, and cd ..
doesn't change the directory. Where is this directory on my Windows machine?
The directory C:\Program Files\Git\
has similar contents, except that /
has a proc
subdirectory, and C:\Program Files\Git\
doesn't.
I put dir /s /a git-bash.exe
in cmd.exe
, and it only came up with the git-bash.exe
in C:\Program Files\Git
, no other one (such as the one in /
).
Solution 1:
In Git Bash, open Windows Explorer with this command:
explorer .
You will then see your current directory in the explorer address bar
Solution 2:
You can run cmd
from the current directory in Git Bash. That will start a windows cmd
shell, which will show the windows path in the command prompt. Then type exit
to return to Git Bash.
For example:
$ cmd
Microsoft Windows ...
C:\Program Files\Git>
(This is also a quick way to convert unix path to windows path.)