Change drive in git bash for windows

I am trying to navigate to the location of my E:/Study/Codes drive in git bash in windows. On the command line, I use E: to change the drive E: It returns an error in git bash .

bash: command E :: not found.

How do I change the current directory location from /c/users to E:Study/Codes

+94
git git-bash
Jul 25 '16 at 9:13
source share
5 answers

To switch to another drive, just use

 cd /E/Study/Codes 

This will solve your problem.

+148
Jul 25 '16 at 9:15
source share

Just treat your disk as a folder, so do cd e:

+8
Nov 21 '18 at 9:49
source share

To switch to another drive / directory, you can do it in a convenient way (instead of entering cd / e / Study / Codes), just type cd [Space] and drag and drop your directory codes with the mouse. to press gash, press [Enter].

+4
Apr 05 '18 at 14:53
source share

How do I do it in Windows 10

Go to the directory of your folder that you want to open in git bash, like this

enter image description here

Once you get to the folder, just type git bash in the upper navigation area, as for example, and press Enter.

enter image description here

Git Bash for the intended folder will open for you.

enter image description here

Hope this helps.

+1
Nov 21 '18 at 10:13
source share

use the command below cd / e / Study / Codes

0
Dec 17 '18 at 16:59
source share



All Articles