git diff <localbranch> <remote/branch>
好比個人本地分支名爲dev,遠程分支名爲dev。git
那要比較本地和遠程的區別就應該寫成3d
git diff dev origin/dev
git diff <local/filepath> <remote/filepath> git diff src/a.txt src/a.txt