我尝试了这种方法[https://daily-dev-tips.com/posts/removing-a-env-file-from-git-history/],但仍然在我的git存储库中显示.env文件。
您必须将其添加到.gitignore文件中
在本地删除它或更改其路径(您将看到更改)
然后提交更改并推送它们