Почему отклонено «git push»? («Git pull» не помогает)

Моя текущая ветка - my_branch . Пытаясь внести изменения в удаленное репо, я получаю:

$ git push
Counting objects: 544, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (465/465), done.
Writing objects: 100% (533/533), 2.04 MiB | 1.16 MiB/s, done.
Total 533 (delta 407), reused 0 (delta 0)
To git@......git
   4ed90a6..52673f3  my_branch -> my_branch
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@......git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.

Попытка git pull ] приводит к следующему:

$ git pull
Already up-to-date.

Почему я получаю эту ошибку? Как я могу решить эту проблему и успешно выполнить git push ?

16
задан Misha Moroshko 17 January 2012 в 21:28
поделиться