英文:
Accidentally deleted git ignored file in Flutter project
问题
我意外删除了一个在.gitignore
中的文件,让我们称之为abc
。由于该文件是一个重要的资源,位于pubspec.yaml
中的"asset"条目下,每当工作流开始运行"flutter analyze"时都会失败。有什么建议吗?
英文:
I accidentally deleted a file that was in .gitignore
, let's call the file abc
. Since the file was an important asset and was located in pubspec.yaml
under the "asset" entry, every time the workflow starts it fails when it runs "flutter analyze". Any suggestions?
答案1
得分: 1
如果文件被Git忽略,Git就不会跟踪它(除非被强制添加,但即使它出现在.gitignore
文件中,它实际上并没有被忽略)。除非你有其他文件系统的备份,否则恐怕就没什么办法了。
英文:
If the file is git-ignored, git does not track it (unless it was forcibly added, but then it's not really ignored even though it appears in the .gitignore
file). Unless you have some other filesystem backup, I fear you're out of luck.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论