using git: rebase, not putll before push
Ian Monroe
ian at monroe.nu
Mon Dec 6 20:12:52 GMT 2010
On Mon, Dec 6, 2010 at 1:45 PM, Sven Langkamp <sven.langkamp at gmail.com> wrote:
> On Mon, Dec 6, 2010 at 6:48 PM, Boudewijn Rempt <boud at valdyas.org> wrote:
>>
>> Hi,
>>
>> We're having lots and lots of
>>
>> Merge branch 'master' of ssh://git.kde.org/calligra
>>
>> type commits. Those are caused by pushing without rebasing first.
>>
>> So, instead of doing this:
>>
>>
>> git pull, hack, commit, hack commit, git pull, git push
>>
>> do:
>>
>> git pull, hack, commit, hack, commit, git rebase origin master, pit push
>
> If I do this then I get the error:
>
> To ssh://git@git.kde.org/calligra
> ! [rejected] master -> master (non-fast-forward)
> error: failed to push some refs to 'ssh://git@git.kde.org/calligra'
> To prevent you from losing history, non-fast-forward updates were rejected
> Merge the remote changes before pushing again. See the 'Note about
> fast-forwards' section of 'git push --help' for details.
Try
git remote update
git rebase origin/master
The above error usually happens when you don't have the latest code.
Ian
More information about the calligra-devel
mailing list