You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc, meta: document what to do if git push upstream master is rejected #12628
Trying to land a big PR after syncing the masters, while other collaborators actively pushed the same time, I've got this:
To https://github.com/nodejs/node
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/nodejs/node'
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.
Activity
Fishrock123 commentedon Apr 24, 2017
Briefly, my usual workflow would be:
Fishrock123 commentedon Apr 24, 2017
Although if I was merging someone else's pr without conflicts, I'd just
git amthe patch again after rebasing master. Typically much easier.gibfahn commentedon Apr 24, 2017
I'd just do:
Trott commentedon Aug 16, 2017
PR: #14848
doc: explain what to do if git push is rejected
doc: explain what to do if git push is rejected
doc: explain what to do if git push is rejected
doc: explain what to do if git push is rejected