2015-08-08 51 views

回答

1

原來實際的消息:

git 'lfs' is not a git command. 
error: failed to push some refs 

由於mentioned in this issue

Sorry for the trouble, you should be able to fix your pushes by removing the .git/hooks/pre-push file from your repository. This is where git is trying to run git lfs when you push.

您也可以make sure lfs is completely uninstalled


原來的答覆:

完整的信息應包括「非快速向前更新被拒絕」的提示。

這可能是你有:

  • 創建了一個回購在GitHub上有README(一個提交那裏進行)
  • 在本地創建一個空的回購協議(0提交,然後自己提交),加一個遙控器並試圖推動。

在這種情況下,你會有兩個不同的歷史。

嘗試git pull --rebase,然後git push

+0

老實說,我沒有很好地理解你。我已經這樣做http://s019.radikal.ru/i603/1508/4f/e0ce02a75c37.png – HeartOfprogrammer

+0

@HeartOfprogrammer我現在看到*完整*和完整的錯誤信息。我已經編輯了相應的答案。 – VonC

+0

什麼都沒有改變,我應該刪除程序混帳?我再次安裝? – HeartOfprogrammer