-1

Is there a way in git to do diffs on a specific file against a remote. I'm looking for an answer on all 3 states: unstaged, staged, and committed.

thanks!

4

1 回答 1

0

git diff <remote-name> -- <filename>

这应该适用于分阶段和未分阶段的状态。

对于提交的文件,

git diff <commit-sha1> <remote-name> -- <filename>

于 2013-10-07T22:09:19.703 回答