指定更新哪个分支代码
git pull origin <master>
查看差异
git diff 显示工作目录与索引文件之间的差异
git diff –cached 显示索引文件与git仓库之间的差异
git diff HEAD 显示工作目录与git仓库之间的差异
git diff HEAD^ 显示上一次提交之前工作目录与git仓库之间的差异(pull后可以用这个命令来查看更新了什么)
原文地址:https://www.cnblogs.com/suruozhong/p/11718205.html
时间: 2024-10-08 20:53:50