git fsck 代表什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21151945/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 09:35:30  来源:igfitidea点击:

What does git fsck stand for?

gitgit-fsck

提问by LopSae

What is the meaning in behind the fsckcommand name?

fsck命令名称后面的含义是什么?

The documentationof the command does not seem to mention what the name stands for.

命令的文档似乎没有提到名称代表什么。

回答by Barmar

It stands for File System ChecK. The name is taken from the Unix fsckcommand, which is used to validate a file system.

它代表文件系统检查。该名称取自fsck用于验证文件系统的 Unix命令。

回答by VonC

It was first called:

它最初被称为:

  • fsck-cached(git 0.99), to check the repository for errors
  • then fsck-objects(git 0.99.8), in order to report what exactly is wrong with the object, instead of an ambiguous 'bad sha1 file'.
  • and finally git fsck(git 1.5.0, January 2007)
  • fsck-cached(git 0.99),检查存储库是否有错误
  • 然后fsck-objects(git 0.99.8),为了报告对象究竟有什么问题,而不是一个模棱两可的“坏 sha1 文件”。
  • 最后git fsck(git 1.5.0,2007 年 1 月)

It reflects that Git was initially built as a file system, with a graph of nodes and git fsckis presented in this GitHub Trainingas a file system checkwhich verifies integrity and finds corrupt objects.

它反映了 Git 最初是作为一个文件系统构建的,带有节点图,并git fsck在此GitHub 培训中作为文件系统检查呈现,用于验证完整性并查找损坏的对象。