[英]Adding lib64 to .gitignore doesn't ignore the directory
Made a new virtual environment using venv.使用 venv 制作了一个新的虚拟环境。
python3 venv ./
It created multiple directories, one of which is a directory named lib64.它创建了多个目录,其中一个是名为 lib64 的目录。
I then added all the directories created to my.gitignore file and everything is not being tracked except for the lib64 directory.然后,我将创建的所有目录添加到 my.gitignore 文件中,除了 lib64 目录之外的所有内容都没有被跟踪。
.gitignore file .gitignore 文件
__pycache__/
bin/
include/
lib/
lib64/
share/
*.cfg
Yet it still shows when I run git status
但是当我运行
git status
时它仍然显示
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
lib64
You need to add and commit .gitignore
first您需要先添加并提交
.gitignore
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.