git diff commitA commitBgit diff HEAD 和最新的比git diff HEAD --stat 简单比较git checkout commitA fileA 将fileA回退到commitA