Silver Searcher:如何取消忽略 .gitignore 中的文件?
Silver Searcher: how to unignore files in the .gitignore?
我有一个别名文件夹。这些是 bash 个文件。有些是敏感的,所以我将它们保存在 .gitignore
.
中
~/.bash_utilities
bash_a.sh
bash_b.sh
.gitignore
.gitignore:
bash_b.sh
问题是我的 Silver Searcher 查看 .gitignore
并在查看时跳过这些文件。我如何告诉 Silver Searcher 忽略 .gitignore
文件并查看目录中的所有文件?
我当前的命令是
ag ~/.bash*
IIUC,在man ag
:
中有很好的解释
-u --unrestricted
Search all files. This ignores .ignore, .gitignore, etc. It searches binary and hidden files as well.
-U --skip-vcs-ignores
Ignore VCS ignore files (.gitignore, .hgignore), but still use .ignore.
我有一个别名文件夹。这些是 bash 个文件。有些是敏感的,所以我将它们保存在 .gitignore
.
~/.bash_utilities
bash_a.sh
bash_b.sh
.gitignore
.gitignore: bash_b.sh
问题是我的 Silver Searcher 查看 .gitignore
并在查看时跳过这些文件。我如何告诉 Silver Searcher 忽略 .gitignore
文件并查看目录中的所有文件?
我当前的命令是
ag ~/.bash*
IIUC,在man ag
:
-u --unrestricted
Search all files. This ignores .ignore, .gitignore, etc. It searches binary and hidden files as well.
-U --skip-vcs-ignores
Ignore VCS ignore files (.gitignore, .hgignore), but still use .ignore.