What does git fsck stand for?

百般思念 提交于 2019-12-03 10:29:59

问题


What is the meaning in behind the fsck command name?

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


回答1:


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




回答2:


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)

It reflects that Git was initially built as a file system, with a graph of nodes and git fsck is presented in this GitHub Training as a file system check which verifies integrity and finds corrupt objects.



来源:https://stackoverflow.com/questions/21151945/what-does-git-fsck-stand-for

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!