git diff

 

  • Comparison of git diff workspace and staging area
  • git diff HEAD work area compared with the current working branch
  • git diff --cached compare the staging area with the repository
  • git diff <commit1> <commit2> <paths> can also compare the differences of files under this path between different versions

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324455439&siteId=291194637