Am Donnerstag, 22. September 2011, 13:44:20 schrieb Phil Holmes: > On my new machine, I get: > > phil@Ubuntu:~/lilypond-git$ git push --dry-run > To ssh://philhol...@git.sv.gnu.org/srv/git/lilypond.git > ! [rejected] master -> master (non-fast-forward) > error: failed to push some refs to > 'ssh://philhol...@git.sv.gnu.org/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. > phil@Ubuntu:~/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, reinh...@kainhofer.com, 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 _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel