Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does git fsck stand for?

Tags:

git

git-fsck

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.

like image 248
Maic López Sáenz Avatar asked Jan 16 '14 01:01

Maic López Sáenz


People also ask

What is git blob?

A Git blob (binary large object) is the object type used to store the contents of each file in a repository. The file's SHA-1 hash is computed and stored in the blob object. These endpoints allow you to read and write blob objects to your Git database on GitHub. Blobs leverage these custom media types.

What does git show do?

git-show is a command line utility that is used to view expanded details on Git objects such as blobs, trees, tags, and commits. git-show has specific behavior per object type. Tags show the tag message and other objects included in the tag. Trees show the names and content of objects in a tree.

Why is git status slow?

The first thing to determine is if the poor behavior is due to your machine or to your specific local copy of the repo. The files in your . git folder can affect performance in various ways - settings in . git/config , presence of lfs files, commits that can be garbage collected, etc.

What is a dangling commit?

A dangling commit is a commit which is not associated with reference, i.e., there is no way to reach it. For example, consider the diagram below. Suppose we delete the branch featureX without merging its changes, then commit D will become a dangling commit because there is no reference associated with it.


2 Answers

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.

like image 90
Barmar Avatar answered Oct 15 '22 19:10

Barmar


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.

like image 40
VonC Avatar answered Oct 15 '22 21:10

VonC