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

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

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

5条回答
  •  猫巷女王i
    2021-02-01 19:11

    You will need to use quotes in your directory name, or the short version of the filename.

    You can find the short version of the file name by issuing the command:

    dir /x

    If I remember correctly. I do not have a windows machine.

    It is a version of bash shell though, so you should be able to simply quote it. (And the dir /x may or may not work.)

提交回复
热议问题