在Git工作区中检测修改文件的简单方法是什么? [英] What's an easy way to detect modified files in a Git workspace?

查看:160
本文介绍了在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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆