2015-11-02 62 views
2

我在理解錯誤試圖告訴我什麼時遇到一些困難。我在Githhub上創建了一個新的存儲庫,然後遠程添加了給定的鏈接。作爲總noob,任何意見將不勝感激!錯誤:未能將一些文件推送到新的存儲庫中

[email protected] MINGW64 ~/Desktop/RCB_Classwork/Introduction_work (develop) 
$ git push origin master 
To https://github.com/ntekal/Professional.git 
! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to 'https://github.com/ntekal/Professional.git' 
hint: Updates were rejected because a pushed branch tip is behind its remote 
hint: counterpart. Check out this branch and integrate the remote changes 
hint: (e.g. 'git pull ...') before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

回答

1

看起來你是從'develop'分支而不是你的主人操作的,這不允許你'推送原點主'。當你在一個分支中操作時,你可以在github中將它合併到你的master中,或者甚至可以'cd ..'到你的master repo中,然後再嘗試''git push origin master''。也是一個noob,所以希望這有助於!

相關問題