DEV Community

Cover image for Git - 10 Fun Facts
Rubansi Vincent
Rubansi Vincent

Posted on

Git - 10 Fun Facts

10 unique and fun Git facts ๐Ÿ“

  1. Named as a Joke โ€“ Linus Torvalds named Git after British slang for โ€œunpleasant person,โ€ poking fun at himself.
  2. 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.
  3. Snapshot System โ€“ Git stores complete snapshots of files, not just diffs, making it super fast and reliable.
  4. SHA-1 Everywhere โ€“ Every file, commit, and branch is tracked by a 40-character SHA-1 hash, ensuring data integrity.
  5. Entire Repo in .git Folder โ€“ All history and data live in the hidden .git folder; copy it and youโ€™ve cloned the repo.
  6. Distributed by Default โ€“ Every clone of a repository is a full backup, no central server required.
  7. Reflog Time Machine โ€“ git reflog lets you recover โ€œlostโ€ commits or branches you thought were gone forever.
  8. Emoji Branches โ€“ You can name branches with emojis ๐Ÿฑโ€๐Ÿ‘ค, ๐Ÿ”ฅ, ๐ŸŽ‰, etc.
  9. Plumbing vs. Porcelain โ€“ Git has hidden low-level โ€œplumbingโ€ commands (like cat-file) under its everyday โ€œporcelainโ€ commands (like commit).
  10. Used Beyond Code โ€“ People use Git to version-control novels, research papers, resumes, recipesโ€”even legal documents.

Top comments (0)