Git Fetch

2017/08/27

git fetch / git pull 区别

git fetch

`

更新远程repo 'origin', remote branch ‘master'

git fetch origin master

从remote branch 'master' merge 内容到当前本地分支

git merge origin/master `

git pull

相当于上面的git fetch + git merge两步, 可能要人工处理代码冲突

Search

    Table of Contents