# Git pull merge ###### tags:`想知道嗎`, `Git` --- <!-- ![](https://i.imgur.com/x5KhJ0q.jpg =300x) --> Sarah 🐘Vegelephant 🐘 蔬食-環保-玩小孩 past: Python now : PHP fb id:100001561720922 --- ### 併 * WHY * WHAT * HOW --- ## Merge merging B into A, checkout A --- ## Pull = Fetch + Merge ![](https://res.cloudinary.com/practicaldev/image/fetch/s----yED1c8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bpse3acnzkd8tziw7jqb.png ) --- ## Merge ![](https://i.imgur.com/pScoo1Z.png =100x) ![](https://i.imgur.com/yiYBiEN.png =100x) --- ## Rebase ![](https://i.imgur.com/pScoo1Z.png =100x) ![](https://i.imgur.com/sW7khy6.png) --- ## Conflict ``` <<<<<<< HEAD ours (當前branch的內容) (要rebase的目標) ======= theirs (要Merge的) (當前branch的內容) >>>>>>> branch-a ``` --- `git checkout --ours codefile.js` `git checkout --theirs codefile.js` ---
{"metaMigratedAt":"2023-06-15T01:37:05.298Z","metaMigratedFrom":"YAML","title":"Git pull merge","breaks":true,"slideOptions":"{\"transition\":\"slide\"}","contributors":"[{\"id\":\"0f4b2677-c241-45c8-bc6c-45fe527d2921\",\"add\":2277,\"del\":1339}]"}
    314 views