如何在不使用 .gitignore 的情况下执行“git status"以便不显示未跟踪的文件? [英] How do I do a 'git status' so it doesn't display untracked files without using .gitignore?

查看:26
本文介绍了如何在不使用 .gitignore 的情况下执行“git status"以便不显示未跟踪的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何执行 git status 以便在不使用 .gitignore 的情况下不显示未跟踪的文件?我只想获取跟踪文件的修改状态信息.

How do I do a git status so it doesn't display untracked files without using .gitignore? I want to get modification status information on tracked files only.

推荐答案

使用这个:

git status -uno

相当于:

git status --untracked-files=no

它有点隐藏在手册中,但状态手册页说支持与 git-commit 相同的选项",所以你必须在那里查看.

It's a bit hidden in the manuals, but the manpage for status says "supports the same options as git-commit", so that's where you'd have to look.

这篇关于如何在不使用 .gitignore 的情况下执行“git status"以便不显示未跟踪的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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