2016-08-23 63 views
0

我在嘗試設置原子git-plus軟件包,並通過了我認爲合適的設置步驟,並且無法將文件推送到我的github帳戶。使用Git的配置,我已經配置user.email和user.name,並確保它們反映了我在Github上的帳戶和電子郵件地址Atom git-plus困難

我得到一個錯誤信息:

To https://github.com/etc. 
![rejected] HEAD -> master (fetch first) 
error: failed to push some refs to https://github.com etc. 
Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want o first integrate the remote changes e.g. git pull before pushing again. 

新的回購協議是一種測試剛剛創建的一個。我嘗試了一個git pull,然後嘗試通過git-plus來推送它。我試圖刪除本地副本並通過克隆重新創建它。我可以使用終端推送文件。 我對版本控制知之甚少,無法知道下一步該做什麼。有什麼想法嗎?

回答

0

對於那些和我一樣困惑的人:發生了什麼。

我通過指定我的git pull消息給名稱和分支來解決此問題。這合併了任何文件導致的問題,然後我從git-plus推送工作正常。

據我瞭解(並請那些知道他們在這裏談論的糾正我,當我博克它)

git的拉動應該讀

git pull origin (which is the alias of your remote repository) master (which is the branch you're pulling from) 

我打字的混帳拉和不理解你需要指定你想要合併的地方。