我對git有點新,任何意見將不勝感激。即使是學習更深入的免費視頻/課程練習的鏈接對我來說也是有用的。什麼是git fetch和git pull之間非常具有描述性和易於理解的描述?什麼時候git fetch vs git pull更好?
0
A
回答
1
「最簡單的說法,git pull執行git fetch,然後進行git合併。」
在這裏尋找它的一些好消息:What is the difference between 'git pull' and 'git fetch'?
2
混帳取
- 拉代碼從遠程倉庫到你的「遠程跟蹤分支」。基本上這意味着已經提交給遠程倉庫的任何更改的信息都會被帶到您的本地分支,但這些更改不會與您的本地分支副本合併,因此準備好的將被合併。無需在本地存儲庫中更改自己的代碼工作副本即可安全地完成提取。
混帳拉
- 拉低從遠程代碼,一樣取,但立即合併到您當地的分行,改變你的本地副本。
使用取,每當你想搞垮一個記錄已作出了遠程資源庫的變化。例如,您可能只需要在遠程創建的新分支的本地可見性。當您想要合併所有最新的更改並立即將它們反映到您的分支中時使用拉。
+1
謝謝我真的很喜歡你的答案 –
相關問題
- 1. git pull VS git fetch git rebase
- 2. git fetch和git pull混淆
- 3. git pull,git fetch和git rebase有什麼區別?
- 4. Git Fetch vs Pull:不同結果,不確定爲什麼
- 5. 捆綁創建之前做git fetch/pull
- 6. 有什麼區別git fetch B + git merge B vs git merge origin/B
- 7. 爲什麼git pull origin master不能工作,但是git pull呢?
- 8. 與上游同步叉:git fetch + git checkout + git merge與git checkout + git pull
- 9. shell_exec和git pull
- 10. 「git fetch」的反義詞是什麼?
- 11. git pull --rebase,git rebase和git merge之間的區別
- 12. Git pull或git fetch忽略某些文件
- 13. git中的分支描述
- 14. VSTS 2015 Git Pull請求描述不支持降價
- 15. git pull起源[branchname]是什麼意思?
- 16. Git Hook for git pull
- 17. git中的「git team-fetch」命令是做什麼的?
- 18. 當git pull導致衝突,但是git pull --rebase不會導致什麼?
- 19. 配置git讓「git pull」代替「git pull origin master」?
- 20. Git獲取原點vs git fetch --all
- 21. 爲什麼「git push」被拒絕? (「git pull」沒有幫助)
- 22. 無法'git submodule foreach git pull'
- 23. git rebase upstream/master vs git pull --rebase upstream master
- 24. gerrit-git(pull vs checkout vs cherrypick)這是爲了什麼?
- 25. 爲什麼「git fetch origin branch:branch」僅適用於非當前分支?
- 26. git pull和git請求拉之間的區別
- 27. git pull --rebase --ff-only會做什麼?
- 28. 我可以使用git pull --rebase而不是「git stash git pull git stash pop」嗎?
- 29. 撤消git存儲,git pull
- 30. updateInstead for git fetch -u
重複:https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch/292359#292359 – Marit