- Daniel Arbuckle's Mastering Python
- Daniel Arbuckle
- 111字
- 2021-07-02 21:09:42
Merging codes
To merge code from a different branch, all we have to do is to use the git merge command from inside the branch we're merging to and give it the name of the branch we're merging from. If the two branches cannot be automatically combined, Git will do it for us:

That's usually all there is to it, but sometimes there are overlapping changes in both branches; when that happens, Git knows it's not smart enough to handle the merger on its own.
When we run git merge, it will notify us that there are conflicts. Then, we can use git mergetool to start up the merge resolution tool:

推薦閱讀
- Learn Blockchain Programming with JavaScript
- Mastering Entity Framework Core 2.0
- 垃圾回收的算法與實現
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- C語言程序設計實訓教程
- EPLAN實戰設計
- Java項目實戰精編
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- SQL經典實例(第2版)
- 劍指Java:核心原理與應用實踐
- 單片機C語言程序設計實訓100例
- Scala Reactive Programming
- Tableau 10 Bootcamp
- Java Web開發詳解
- Swift 4 Protocol-Oriented Programming(Third Edition)