我正在尝试将我的一个项目推送到github,并且我一直收到此错误:
peeplesoft@jane3:~/846156 (master) $ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
Run Code Online (Sandbox Code Playgroud)
所以我试了一下,得到了这个:
peeplesoft@jane3:~/846156 (master) $ git push --set-upstream origin master
fatal: Authentication failed
Run Code Online (Sandbox Code Playgroud)
另一个stackoverflow线程建议我尝试以下,结果令人失望.
peeplesoft@jane3:~/846156 (master) $ git push -u origin master
fatal: Authentication failed
Run Code Online (Sandbox Code Playgroud)
然后我尝试了这个:
peeplesoft@jane3:~/846156 (master) $ git config remote.origin.push HEAD
peeplesoft@jane3:~/846156 (master) $ git push
fatal: Authentication failed
Run Code Online (Sandbox Code Playgroud)
任何提示?