2015-07-20 50 views
0

我在存儲庫上推存在問題。Git SourceTree集成變化

提示:更新被拒絕,因爲你的當前分支的尖端後面

提示:及其遠程副本。在再次推送之前,集成遠程更改(例如

提示:'git pull ...')。

但是,在拉我的朋友所做的更改後,什麼也沒有發生。

我們正在研究不同的部分,我認爲它不應該有任何衝突。

我們只有一個分支。

enter image description here

+0

我們需要更多信息來幫助您。你在哪個部門工作。你什麼意思是「什麼都沒有發生」? – blue112

+0

我的意思是什麼都沒有發生,拉動變化後,他們在代碼appering,但sourcetree不允許推我的變化。 – A191919

回答

0

這裏是應該在你的情況下工作:

# Get the remote changes 
# Two commits: 
# - add new folder 
# - add languages 
git pull origin master 

# This should have caused a merge commit. 
# If Git asks you to provide a commit message, do that. 
# If there are conflicts, fix them and commit the changes 
# After that, push your changes (merge commit + UI balance update) 
git push origin master 

這是非常標準的工作流程 - 這適用於幾乎每個人。如果其中一個命令顯示錯誤,請更新您的問題。

這些事情最好從命令行完成 - 理解底層的Git命令將對您長遠有利。