Git Push Error - Could not resolve host name

后端 未结 4 564
迷失自我
迷失自我 2021-02-05 06:22
nshastri@N-SHASTRI ~/datasciencecoursera (master)
$ git push origin master

ssh: Could not resolve hostname https: no address associated

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 07:25

    You are probably trying to connect a FALSE NAME DIR your repository name should be the SAME as your folder name in local environment.

    git repo: gitRepo folder name: gitRepo now you can push

    it is also a good practice to first CLONE your new repository to a different folder and then you can COPY your code to this new folder and then change its name to the right git repository name.

提交回复
热议问题