意外删除了Flutter项目中的git忽略文件

huangapple go评论61阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年2月19日 18:21:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/75499422.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定