10 unique and fun Git facts ๐
- Named as a Joke โ Linus Torvalds named Git after British slang for โunpleasant person,โ poking fun at himself.
- Built in 2 Weeks โ Linus wrote the first version of Git in just two weeks in 2005 after the Linux team lost access to BitKeeper.
- Snapshot System โ Git stores complete snapshots of files, not just diffs, making it super fast and reliable.
- SHA-1 Everywhere โ Every file, commit, and branch is tracked by a 40-character SHA-1 hash, ensuring data integrity.
-
Entire Repo in .git Folder โ All history and data live in the hidden
.gitfolder; copy it and youโve cloned the repo. - Distributed by Default โ Every clone of a repository is a full backup, no central server required.
-
Reflog Time Machine โ
git refloglets you recover โlostโ commits or branches you thought were gone forever. - Emoji Branches โ You can name branches with emojis ๐ฑโ๐ค, ๐ฅ, ๐, etc.
-
Plumbing vs. Porcelain โ Git has hidden low-level โplumbingโ commands (like
cat-file) under its everyday โporcelainโ commands (likecommit). - Used Beyond Code โ People use Git to version-control novels, research papers, resumes, recipesโeven legal documents.
Top comments (0)