Git 中級
George Boorman
Curriculum Manager, DataCamp
衝突
在兩個分支都編輯同一個檔案
嘗試合併
Git 不知道要保留哪個版本
發生衝突!
documentation branch# Contents and usage
This repo contains source code
for the DataCamp website.
It also contains source code for an
AI-Assistant (recommendation system)
that takes prompts from learners and
returns suggested content
that they might be interested in.
It is for internal use only,
external access is prohibited.
main branch# Contents and usage
This repo contains source code
for the DataCamp website.
It is for internal use only,
external access is prohibited.
main 分支執行git merge documentation
Auto-merging README.md
CONFLICT (add/add): Merge conflict in README.md
Automatic merge failed; fix conflicts and then commit the result.
nano README.md



Ctrl + O(不是 Ctrl + 0),再按 EnterCtrl + Xgit add README.md
git commit -m "Resolving README.md conflict"
git merge documentation
Already up to date.
Git 中級