trouble w/ pushing commits -- "failed to push some refs"
Subject: trouble w/ pushing commits -- "failed to push some refs"
From: Leo Butler
Date: Fri, 15 Jul 2011 19:58:57 +0000
Raymond Toy <toy.raymond at gmail.com> writes:
>>>>>> "Robert" == Robert Dodier <robert.dodier at gmail.com> writes:
>
> Robert> I did a git pull before trying to push stuff.
> Robert> I guess I should have mentioned that.
>
> Sorry then, I have no further ideas. A google search on the error
> message indicates that git pull is the answer. Perhaps you were
> unlucky and someone else did a push between the time you did a pull
> and wanted to do the push? But maxima code isn't changing *that*
> fast in general.
I sent a message earlier, but it is being held up.
What I would try is this:
git checkout master
git fetch
EDITOR=emacs git rebase --interactive --onto FETCH_HEAD
This will pop you into an emacs buffer, and you can
alter your coommits, and so on. Exiting the buffer will
start applying the commits. If a conflict exists, you'll
get popped into a buffer to manually fix the conflicts;
on exiting, do
git add filename
git rebase --continue
If you get into a pickle,
git rebase --abort
undoes everything (unless the rebase is done).
I would suggest doing these fixes in a copy of your
repo in case something goes bad.
--
Leo Butler <l_butler at users.sourceforge.net>
SDF Public Access UNIX System - http://sdf.lonestar.org