Get out of a folder using Git Bash

vin picture vin · Jun 23, 2012 · Viewed 81.9k times · Source

I am using Git Bash and am trying a few things like making a 'commit' and 'push' to GitHub. I want to get out of the current directory C:\user\myUsername\app and land in the C:\user\myUsername folder.

What commands do I write in Git Bash?

Answer

aleroot picture aleroot · Jun 23, 2012

To change your directory in git-bash to that specific path you can use this command :

cd /c/user/myUsername

basically you have to replace backslash with standard slash, or otherwise if you simply want to go to the parent directory you can use :

cd ..

as stated in comments that you already received on your question ...