You can show changes that have been staged with the --cached
flag:
(您可以显示已使用--cached
标志暂存的更改:)
$ git diff --cached
In more recent versions of git, you can also use the --staged
flag ( --staged
is a synonym for --cached
):
(在更新版本的git中,您还可以使用--staged
标志( --staged
是--cached
的同义词):)
$ git diff --staged
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…