如何仅显示当前目录中的未跟踪文件(忽略子目录)? [英] How does one show untracked files in current directory only (ignoring subdirectories)?

查看:51
本文介绍了如何仅显示当前目录中的未跟踪文件(忽略子目录)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git ls-files --others

进入目录树.是否有一种简单的方法来显示当前目录中仅 的未跟踪文件?

goes down the directory tree. Is there an easy way to show untracked files only in the current directory?

推荐答案

使用

在手册页中:

-x <pattern>
--exclude=<pattern>

跳过未跟踪的文件匹配模式.请注意,模式是外壳通配符模式.

Skip untracked files matching pattern. Note that pattern is a shell wildcard pattern.

这篇关于如何仅显示当前目录中的未跟踪文件(忽略子目录)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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