How do I change the directory in Git Bash with Git for Windows?

前端 未结 5 1820
醉梦人生
醉梦人生 2021-02-01 18:44

How would I change to the directory C:/Users/myname/project name in Git Bash?

5条回答
  •  囚心锁ツ
    2021-02-01 18:48

    cd /c/users/myname/project\ name
    

    Beware that ls /, or typing cd / followed by Tab-completion, might not show the existence of this folder, but cd /c will still work. Also note that pwd (to print the current working directory) might show something like /bin, but this might not be the actual working folder for commands such as git clone, which might use the folder from which Git Bash was started.

提交回复
热议问题