你当前在dev分支, 查看dev本地分支和远程分支的差异
bash
git diff origin/dev HEAD --name-only
找到对应的文件后利用IDE, Compare With Branch查看
或者找到文件的最近提交记录作比较
bash
git diff d87983d3..ebe72b39
显示所有未推送的提交
bash
git log origin/main..HEAD
显示最后一次推送以来所有文件的变化
bash
git diff origin/main HEAD --name-only
显示最后一次推送以来所有文件的详细改动
bash
git diff origin/main HEAD