1
我正在设计我的web应用程序,现在我想将更改推送到我的回购站。如何将更改推送到github
我试图git push orgin master
,进入我的userame /正确密码,并收到此错误:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/username/project.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.
所以,我想git pull orgin master
(其中成功下载其他用户添加的变化),然后我重新尝试git push orgin master
和相同的结果。再次。
我也试过
git init
git add .
git commit -m "Styled notifications"
这并没有帮助。我一直得到同样的错误。我只是手动添加文件! – GVS
'我只是手动添加文件'...这是什么意思?拉应明确地将您的本地分支与遥控器进行更新。 –