在服务器中,我创建了存储库。在家用电脑我拉。现在我进行了更改并且它们正在工作,我需要推送到服务器。Git拒绝推动。如何更新服务器中的文件?
$ git push
To ssh://erkin@mornehir.com/~/erkin
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://erkin@mornehir.com/~/erkin'
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.