拒绝主人- m...
Notifications
Clear all

拒绝主人- master fetch first error failed to push some refs to git github com abc70 new git

RSS

(@ganesh)
Noble Member
Joined: 1 year ago
Posts: 1362
11/05/2021 1:06 pm

I am getting the below error when trying to push data fromlocal to GitHub.

! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:abc70/new.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Quote
(@abhijith)
Noble Member
Joined: 1 year ago
Posts: 1350
11/05/2021 1:07 pm
git push origin master --force I met the same issue and this works for me

ReplyQuote
Share:
Baidu