Re: failed to push
- From
Jacob Helwig <jacob.helwig@gmail.com>
- Date
- Mar 1, 2010, 21:27 UTC
- Message-ID
- <2793902788222999372@unknownmsgid>
- In-Reply-To
- <4B8C2E68.3020507@gnu.org>
On Mar 1, 2010, at 13:15, Bruce Korb <bkorb@gnu.org> wrote:
Show 16 quoted lines
> Hi, > > This message has no meaning at all. I know it failed to push. > I can tell from the comment "[rejected]". It would be nice > to know *WHY* it was rejected so I can fix the problem. > How do I determine the cause, please? Thank you!! Regards, Bruce > > $ git push > To ssh://bkorb@autogen.git.sourceforge.net/gitroot/autogen/autogen > ! [rejected] master -> master (non-fast forward) > error: failed to push some refs to 'ssh://bkorb@autogen.git.sourceforge.net > /gitroot/autogen/autogen' > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
It tells you right there at the end of the rejected line. The push would have resulted in a non-fast-forward update of the branch.
To "fix" this, you need the current commit pointed to by the branch as one of the ancestors of the commits you're trying to push.