我有一个别名文件夹。这些是 bash 文件。有些是敏感的,所以我将它们保存在 .gitignore
中。
~/.bash_utilities
bash_a.sh
bash_b.sh
.gitignore
.gitignore: bash_b.sh
问题是我的 Silver Searcher 查看 .gitignore
并在查看时跳过这些文件。我如何告诉 Silver Searcher 忽略 .gitignore
文件并查看目录中的所有文件?
我当前的命令是
ag $1 ~/.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.
关于linux - 银色搜索器 : how to unignore files in the . gitignore?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48048529/