Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Windows network paths with Git Bash

Paths to network resources are denoted in Windows with the \\servername\share\path\to\folder syntax. How does one use such a folder within Git Bash, which uses Unix-style paths?

like image 665
Florian von Stosch Avatar asked Nov 18 '13 12:11

Florian von Stosch


People also ask

Does git bash use Windows path?

You need to change this Windows CMD to Git Bash. Go to File > Preferences > Settings and type shell in search settings. After that, navigate to Terminal > Integrated > Shell:Windows and update the path with Git Bash executable: C:\Program Files\Git\bin\bash.exe and save.

How do I navigate to a path in git bash?

just right click on the desired folder and select git-bash Here option it will direct you to that folder and start working hope it will work. Show activity on this post. if you are on windows then you can do a right click from the folder where you want to use git bash and select "GIT BASH HERE".

Can I use git bash instead of CMD in Windows?

You don't need to use Git Bash. It is just conventional, because Git was developed and designed on Linux and most Git users use Linux and using Git Bash on Windows makes it a uniform experience. You can certainly use Git on cmd; just make sure you add C:\Program Files\git\cmd to your PATH .


1 Answers

Actually just cd //servername/share/path/to/folder where //servername/ is followed by at least one shared folder.

like image 146
protometa Avatar answered Oct 02 '22 06:10

protometa