📅 发布时间:2026/6/19 23:33:10 1.先在。gitignore里面加一行.env(这里写需要忽略的文件路径) 2.如果已经提交过了,就需要从版本库中移除 git rm --cached .env git commit -m "Stop tracking .env"