Git Bash can't change directory to documents folder

后端 未结 5 585
陌清茗
陌清茗 2021-02-08 07:42

I\'m trying to following this Github tutorial: https://www.youtube.com/watch?v=73I5dRucCds When I try to change my directory to my desktop, I get this in my Git Shell:

5条回答
  •  伪装坚强ぢ
    2021-02-08 08:07

    The home directory of cygwin based apps like babun, git-bash, mobaxterm etc. i.e. ~ or $HOME is not the same as windows.

    Windows user path is in the %USERPROFILE% environment variable which in cygwin syntax is /c/Users/YOURUSER (or /cygdrive/c/Users/YOURUSER), like pointed out by the other answers.

    Also, Cygwin based apps handle HOME if it is already set to a custom path in Windows, see the Cygwin FAQ page: https://www.cygwin.com/faq.html#faq.setup.home

提交回复
热议问题