我在这个时间点git clone 了一个开源项目:
Feb 3 14:40:00 2023 +0800
然后我知道在后续,此项目一直有commit更新在github,
但是为何我在本地diff自己的master和origin/master,没有任何的差异信息呢:
markleo@mba G6 % git diff master origin/master
markleo@mba G6 %
我在这个时间点git clone 了一个开源项目:
Feb 3 14:40:00 2023 +0800
然后我知道在后续,此项目一直有commit更新在github,
但是为何我在本地diff自己的master和origin/master,没有任何的差异信息呢:
markleo@mba G6 % git diff master origin/master
markleo@mba G6 %
13 回答12.8k 阅读
8 回答2.6k 阅读
2 回答5.1k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
5 回答892 阅读
5 回答1.2k 阅读✓ 已解决
3 回答2.2k 阅读
你需要去跟踪一下git fetch,可以参考一下这篇文章https://www.codenong.com/1800783/