git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: push fail

From
DFDragos Foianu <dragos.foianu@gmail.com>
Date
Mar 17, 2014, 13:34 UTC
Message-ID
<loom.20140317T142900-203@post.gmane.org>
In-Reply-To
<CAH_OBie+KrSjtqLinbv8sJAOCu26j8xVzBQJHdHTB44V07GsXg@mail.gmail.com>
shawn wilson <ag4ve.us <at> gmail.com> writes:
Show 8 quoted lines
> 
> How do I get more info here (and hopefully resolve this)?
> 
>  % git push
> To ssh://server/foo/repo.git
>  ! [rejected]        test -> test (non-fast-forward)
> error: failed to push some refs to 'ssh://server/foo/repo.git'
> 

"non-fast-forward" means that someone else pushed to branch test before you did and your push would end up overwriting their changes. Make sure you merge your local branch with the remote branch:

git pull origin test

It might also be a result of local destructive changes made by "git rebase". If you're absolutely certain you will not mess up the remote branch you can add the "--force" parameter when you push.

Previous: shawn wilsonNext: shawn wilson
Message 2 of 4 in “push fail”
  1. shawn wilsonMar 17, 2014
  2. Dragos FoianuMar 17, 2014
  3. shawn wilsonMar 18, 2014
  4. Matthieu MoyMar 17, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.