-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck on push after pushed to another remote url: "There are new changes upstream, you need to pull first." #598
Comments
I already tried the
If I can't save it, I believe I recall correctly: I can delete |
The create a commit on push is feeling more like an anit-feature to me. The reason it behaves that way makes sense, it makes future operations faster, but I use a lot of services such as Gerrit where the pushed patch doesn't just go into a repo, it gets reviewed and updated so it doesn't contain the same SHA. This breaks the interaction. Also doing a |
Any news on this, or better yet, a workaround for now? I ran into the same issue, and I'm 100% stuck with no way forward that I can see. My use-case is the following:
Now where the wheels came off the cart seems to be some combination of me pushing to my fork's github URL first, before creating an intermediary local repo and pushing/pulling from there, together with some of the branch manipulation it seems. I don't know exactly when it got hosed, but the end result is that I'm now completely stuck with The only way I can see is to rewrite my published history on the main project to fixup the original |
Also, I'd like to point out that the message it gives is terribly unhelpful and not at all what the issue is. The line in question checks for ancestry, but no amount of fetching from the remote will change the ancestry, unless I'm missing something very fundamental about how |
I recently successfully pushed this subrepo to a different remote url ("$prod"). Now I'm trying to come back to the original URL ("$origin") and push there to update that repository as well.
I did push to a different remote and now I'm coming back to the original upstream. The default method is rebase. Possibly related #541 (comment), but I did not do any cherry picking or force push and
clean
did not change anything.The text was updated successfully, but these errors were encountered: