1
我的情況如下: 對具有約30次提交的功能分支作出各種更改 需要從Github中拉出develop-branch並將其與功能分支。git rebase:我從不同提交的相同文件中獲得衝突
這是我已經嘗試:
git pull --rebase origin develop
CONFLICT (content): Merge conflict in users.py
我解決衝突的話,
git add users.py
git status # everything looks clean, couple of untracked files
git rebase --continue
return: No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.
git rebase --skip
衝突#這一次,同樣的文件,但不同的承諾!
因此,基本上,當我解決衝突並分階段執行每個文件時,引入了其他衝突。我注意到在的每個提交的功能分支和功能分支之間發生了功能分支和開發分支之間的衝突! 我該如何解決這個問題?
這不回答我的問題存在。問題是我從不同的提交中得到了相同的確切文件上的衝突。例如: 假設我向file_a.py做了5次提交,當我運行「git pull --rebase develop」時,我得到了5次衝突,即使我最近的提交是唯一導致衝突而不是其他4次衝突! – Amir