My default git folder is C:\Users\username\.git.
What command should I use to go into C:/project?
The command is:
cd /c/project/
Tip:
Use the pwd command to see which path you are currently in, handy when you did a right-click "Git Bash here..."
cd $USER will bring me to my users directory on windows.cd "/c/program files (x86)/git/bin/"/ such as /c/project/ are absolute paths and always work regardless of your current path. when the path doesn't start with a forward-slash (relative paths) sush as cd project it will try to go that subdirectory based on your current-working-directory (pwd)Go to the directory manually and do right click → Select 'Git bash' option.
Git bash terminal automatically opens with the intended directory. For example, go to your project folder. While in the folder, right click and select the option and 'Git bash'. It will open automatically with /c/project.
Here are the steps I followed:
In bash, check in which directory you are by using the command:
$ pwd
copy the URL of the directory you want to go like after using the first command (PWD) I got:
$ /c/Users/yourUsername
Now I want to change this to the directory of c drive and folder MyPictures. To do that, I will go the directory of MyPictures, copy the URL,
and paste it in the Git bash. However, before that:
C:\MyPicture becomes $ cd /C/MyPicture (backslashes are replaced with slashes)
if the folder name is having some spaces like (my program) then you need to enclose it in double quotes like:
$ cd "C:\Program Files"
Remember to change directory you just need to copy the requiredUrl and paste that in bash with double-quotes like:
cd "required URL"
Note: URL required with slashes.
$ cd/ c/"Program Files"As Bob mentioned, you can change directories with cd:
cd /c/project
If you have a Windows path with backslashes or spaces, enclose the path in double quotes:
cd "C:\project"
You can check the current folder with pwd.
If the path contains spaces, you will need to use quotation marks. (cd "C:/Program Files")
On Windows, you change the default starting directory for Git Bash.
git-bash.exe, select Properties, open Shortcuts, and change Start in: to your most commonly used folder. (screenshot)The cd command can be memorized as "change directory".
My default git folder is C:\Users\username.git
But I want to go into c:/project
Since you have asked primarily about gitbash which is Linux based (Terminal), there are differences in commands when compared with Command Prompt of Windows. We'll discuss gitbash (Terminal) commands only.
1.First of all we must understand that command line(In Windows) and Terminal(In Mac) always points to some folder on storage Drives .
To check towards what directory it is pointing to at any given time. You need to type the command: pwd "an acronym for 'Print Working Directory' ".
Here are some of the ways to traverse along the folder tree:
3a) cd command let's us traverse to child directory. Kindly check the snapshot.

3b) Now to traverse back into the parent directory, we make use of cd .. command: Please check the Image below:

By Using the above two steps we can easily solve your Query:
A) Currently you are in : C:\Users\username.git
So, doing cd .. will point the Terminal towards Users folder.
B) Again Typing cd .. will make Terminal to point towards C Drive.
C) Now doing ls at this point will let you know about all the folders and files in C drive.
Check if there is a project folder, Then simply for the last time type the command:
cd project
And Walla you are have traveled so far to reach to your destination. Congratulations.
Note: If the project folder is not created with C drive, simply write the command mkdir project and it will be created. Then follow the above steps to play around.
4) There is one more straight forward quick solution to your problem in particular:
Wherever the terminal is pointing. Simply write the command:
4a) cd / It will point to default root folder.
Then type the command : cd /c/ to point towards c directory. Then simply go to child directory, which in your case is project directory by typing:
cd project
And you are good to go: ENJOY :)
To move from c drive to other drive(D or E)use this command----->
cd "your path" Now hit enter. Check your path using $pwd. Your path has been change from one directory to other.
Ex---> cd "D:\WEB_DEV\HTML_CSS_projects\TouristVisitors_LandingPage". note - this is my path, your path should be different.