git diff、git diff --cached、git d

2018-09-26  本文已影响207人  McDu
  1. git diff : 对比工作区(未 git add)和暂存区(git add 之后)
  2. git diff --cached: 对比暂存区(git add 之后)和版本库(git commit 之后)
  3. git diff HEAD: 对比工作区(未 git add)和版本库(git commit 之后)
上一篇 下一篇

猜你喜欢

热点阅读