我已经创建了一个.gitignore
文件,但我不确定它是否有效。
目前我在 DEMOPROJECT 目录的 gitignore 文件中有这个
*db.*
__init__.py
我在 windows 命令行中得到这个输出
(venv) C:\..\..\PycharmProjects\WebP1\DEMOPROJECT>git checkout newMast
Switched to branch 'newMast'
D .gitignore
M db.sqlite3
D
和的意义是M
什么?
这是git status
.
基于https://git-scm.com/docs/git-status,
您可以在https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository了解更多关于每个阶段的含义。
编辑:我认为对于您的情况,似乎db.sqlite3
已预先跟踪了 ,因此即使您已将其添加到 中.gitignore
,仍会跟踪更改。您可以在如何使 Git“忘记”已跟踪但现在位于 .gitignore 中的文件中了解如何修复它?.
另外,.gitignore
在您执行结帐之前,该文件似乎以某种方式被删除了?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句