小编pin*_*boi的帖子

Git Pull不做Git Fetch

我的理解一直git pull是基本上是git fetch和的组合,git merge ...但我已经多次遇到拉动,然后比较显示的变化不是我的,直到我也进行了取物:

(在分支blob上):

git pull origin blob
git diff origin/blob  <- shows a bunch of changes that aren't from my but were just pulled from others
git fetch
git diff origin/blob  <- shows just my changes
Run Code Online (Sandbox Code Playgroud)

我对拉的理解不正确吗?

git pull fetch

9
推荐指数
1
解决办法
3179
查看次数

标签 统计

fetch ×1

git ×1

pull ×1