github项目clone 到本地初始状态
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0fc69fc3986930d46fc011e9f5f94211.png)
git fetch
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b1322f05d3079af815e5a97d58bbe5b2.png)
git fetch origin
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/88e74d899ddfce2539c66a9c53a089ec.png)
git fetch origin test1
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/87cf16c31468cbbe67d6910adcdbcccd.png)
git fetch origin test2:test22
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4a72ed1ad845c3716237f748558a1b66.png)
自验证结论
1・fetch
会在 .git/refs/remotes/origin
创建或更新远程仓库在本地的副本。
2・创建本地仓库后远程分支没有新提交 ☞ 不会有远程分支被拉取下来。
3・有分支push到远程仓库 ☞ 对应分支会被拉取下来。
4・有分支在github上修改文件 ☞ 对应分支会被拉取下来。
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/23f0295910326cb4e77e5bfcee4259aa.png)