沖突產生的原因: 下載代碼后,遠程服務器代碼被修改,本地代碼push時,產生沖突。
例如:下載最新代碼后,在遠程服務器上修改代碼,例如刪除最后一行welcome-file, 然后提交到主分支。

在eclipse中修改代碼,例如加入a.jsp

team-add to index, team-commit, team-push, 產生沖突rejected-non-fast-forward

解決方案:先pull代碼,手動解決沖突。

修改代碼, team-add to index, team-commit, team-push, 沖突解決。