fatal: The current branch master has no upstream branch

后端 未结 23 2237
误落风尘
误落风尘 2020-11-30 16:46

I\'m trying to push one of my projects to github, and I keep getting this error:

peeplesoft@jane3:~/846156 (master) $ git push

fatal: The current branch mas         


        
23条回答
  •  抹茶落季
    2020-11-30 16:59

    1. A computer and your github associated. Use SSH. Computer code so you do not need to submit verified enter image description here

    2. git can not manage empty folder. So you have to write such a readme.md saved in a file. Otherwise you will not find the file.

    3. Your local project is nothing new projects move over. Please

    git init

    git remote add origin +"githublink"

    git add .

    git commit -m "" go again.

    4. then git pull origin master (the key)

    5. At last git push origin master (solve all problem).

    http://my.oschina.net/psuyun/blog/123005 参考链接

提交回复
热议问题