There is a remote branch called \"my-remote\" that I had previously pushed to with no problem. As of today, I can\'t push and I get different errors.
First error I got w
If you want to push your master branch on the my-remote remote branch, the correct syntax would be:
git push https://github.com/someurl/mybranch.git master:my-remote
(first: remote repo reference, the refspec, from git push man page)
Regarding your first error message, if it really didn't tell you to merge, then a git pull --rebase
might have been needed.
Or at least a:
git config --global push.default current
(As mentioned in "Configure Git to Only Push Current Branch").
If you are in the local branch 'my-remote
' (which is the case, according to the command), you can make sure the upstream branch is set by making a:
git push -u https://github.com/someurl/mybranch.git my-remote:my-remote