Git: push rejected non-fast-forward - Needing something to do.
I always get this when I am add a remote repository and I am trying to sync up branches. In order to resolve it, I pull from the repository and get any changes and then try to re-push.
$ git pull otherrepo ... $ git push otherrepo localbranch
This will try to push the changes, but you should probably specify the remote branch as well if that still throws the non-fast-forward error.
$ git push otherrepo localbranch:remotebranch
Read full article from Git: push rejected non-fast-forward - Needing something to do.
No comments:
Post a Comment