What does git fsck stand for?
Asked Answered
I

2

74

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.

Irretentive answered 16/1, 2014 at 1:45 Comment(1)
When you are going to use fsck it's because things are really messed up, but they can't swear in git commands so they replaced a vowel with an sTridentum
P
79

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

While Git is not technically a file system, it can be used analogously and the command name is a metaphor on this.

Peerless answered 16/1, 2014 at 1:47 Comment(4)
@LopSae, note that Git originally was envisioned as a versioned file system, and only subsequently grew into a full-fledged DVCS.Erebus
I had to scroll down to the other answer, which does a bit better job in explaining it. This answer is no good.Coupler
Git was not in fact ever a file system, as it required one to function, but rather a DVCS made from the perspective of a file system, which made it much fasyerAesthete
@Aesthete True, but like many computer-related terms, it's metaphorical.Peerless
C
40

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.

Checkroom answered 16/1, 2014 at 9:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.