[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with git push
From: |
Reinhold Kainhofer |
Subject: |
Re: Problem with git push |
Date: |
Thu, 22 Sep 2011 15:40:48 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; i686; ; ) |
Am Donnerstag, 22. September 2011, 13:44:20 schrieb Phil Holmes:
> On my new machine, I get:
>
> address@hidden:~/lilypond-git$ git push --dry-run
> To ssh://address@hidden/srv/git/lilypond.git
> ! [rejected] master -> master (non-fast-forward)
> error: failed to push some refs to
> 'ssh://address@hidden/srv/git/lilypond.git'
> 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.
> address@hidden:~/lilypond-git$
>
> I did "See the 'Note about fast-forwards' section of 'git push --help' "
> but it didn't help me at all. Could anyone point me to what the problem
> is and how to fix it, please?
Someone has pushed a patch to the server, which you have not yet fetched.
"Pushing" in git simply means to set the server's code tree to the exact same
state as you have on your harddisk. Since you don't have that latest commit
yet, git warns you that pushing would discard that patch and that you should
fetch the latest commits from the server before pushing.
Simply fetch from the server:
git pull --rebase
or
git fetch origin
git rebase origin/master
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
- Re: Problem with git push, (continued)
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, David Kastrup, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Bertrand Bordage, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Bertrand Bordage, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Janek Warchoł, 2011/09/22
- Re: Problem with git push, Phil Holmes, 2011/09/22
- Re: Problem with git push, Reinhold Kainhofer, 2011/09/22
Re: Problem with git push,
Reinhold Kainhofer <=