0

Really new to git bash. My current directory is bin. How do I change the directory back to the original folder that I want? Using cd gives an error that no such file or directory exists.

  • What is your original folder? Run `pwd` will give you the absolute path of current directory – Huy Le Mar 15 '17 at 06:59
  • Running pwd gives the path as /bin. My original folder was in my documents and the path was something like this: Documents/folder/myfolder... – Tejas Kulkarni Mar 15 '17 at 07:16
  • `cd` should be followed by a relative or absolute path to the target directory (and some special 'shortcuts' depends on your shell). The absolute path starts with an '/'. I suspect you typed in `cd Documents/folder/myfolder...` then that probably wouldn't work. The 'documents' or the home directory's location depends your operating system https://en.wikipedia.org/wiki/Home_directory – Huy Le Mar 15 '17 at 07:26
  • we hope you could find some consistent documentation about Git. – Milche Patern Mar 15 '17 at 07:31
  • Right. I was just doing that. I got it working again. Thank you! – Tejas Kulkarni Mar 15 '17 at 08:09
  • Possible duplicate of [Change drive in git bash for windows](http://stackoverflow.com/questions/38563826/change-drive-in-git-bash-for-windows) – Shubham Khatri Mar 15 '17 at 14:07

0 Answers0