在Git工作区中检测修改文件的简单方法是什么? [英] What's an easy way to detect modified files in a Git workspace?
本文介绍了在Git工作区中检测修改文件的简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
除了一个复杂的 sed
/ grep
解析 git status
命令,我该如何轻松确定工作区中的文件是否已根据 git
?
解决方案
git ls-files -m
要找到这个,您可以浏览 git help -a
。
During make, I create string fields which I embedded in the linked output. Very useful.
Other than a complex sed
/grep
parsing of the git status
command, how can I easily determine if files in the workspace have been modified according to git
?
解决方案
git ls-files -m
To find this you could have browsed through git help -a
.
这篇关于在Git工作区中检测修改文件的简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文