我使用gitbash将我的代码上传到github,但是它给出了以下错误:
////
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to
'https://github.com/MayurBagul/Weather-Informer.git'
hint: Updates were rejected because the tip of your current branch is
behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for
details.
我尝试使用提取和合并命令,但是即使它给出了错误。 请帮助我解决这个问题。
谢谢你, Mayur Bagul。
我尝试使用gitbash上传我的代码文件,并给出错误消息。
\\
$ git push origin master
To https://github.com/MayurBagul/Weather-Informer.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to
'https://github.com/MayurBagul/Weather-Informer.git'
hint: Updates were rejected because the tip of your current branch is
behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for
details.
\\
我希望我的代码应该上传到我的github存储库中