gpt4 book ai didi

git - 同一文件的暂存版本和未暂存版本之间的差异,使用 difftool

转载 作者:IT王子 更新时间:2023-10-29 00:57:04 25 4
gpt4 key购买 nike

<分区>

有没有办法查看同一文件的 stagedunstaged 版本之间的差异?

例如:

Changes to be committed:

modified: conf/application.conf

Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: conf/application.conf

当我暂存更改然后再次修改文件而不暂存它时,会发生这种情况。

编辑

git status -vv 命令不够好,因为我需要使用 diff/difftool 命令。那是因为在实践中太多的文件中有太多的变化,并且滚动浏览所有这些文件效率不高。但是 diff/difftool 允许我指定我感兴趣的文件。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com