git status 能显示在.gitignore中的文件的状态吗?

【字号: 日期:2023-08-29浏览:30作者:雯心

问题描述

在终端使用命令:git status 。能显示.gitignore中的文件的状态吗?.gitignore:

git status 能显示在.gitignore中的文件的状态吗?

git status:

git status 能显示在.gitignore中的文件的状态吗?

问题解答

回答1:

.gitignore文件中忽略的是不会显示的。

回答2:

没事的,即使显示git也不会在你push的时候把它提交上,放心吧

回答3:

有个命令也是能看到的,git status --help查看选项,可以看到相关命令的

回答4:

有的文件即使写在gitignore里面也会被 git status看到

相关文章: