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

前端 未结 5 1831
醉梦人生
醉梦人生 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:55

    If you are at the a directory and wanna switch to sub directory use :

    cd "project name"
    

    If you wanna go to a different path use the whole path :

    cd "C:/Users/myname/project name"
    

    But you can avoid use white spaces in project files and folders and instead use underscore

提交回复
热议问题