Five Ways to Break a Git Repository
summary
Shows five concrete ways to break a Git repository and how to fix each: mismatched line endings caused by toggling autocrlf (fix with a .gitattributes file and reindexing), flipping metadata flags like core.ignorecase or core.precomposeunicode which makes files appear modified or duplicated, turning off core.protectNTFS which allows files to overwrite .git internals, and committing OS reserved names like AUX that prevent cloning on Windows. Commands demonstrated: git clone, git status, git add, git config, and deleting/recreating the index.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:34Importance of a Git Repository
- 0:58Line Endings
- 3:08Git Attributes
- 5:15Recompose Unicode
- 6:17Unicode Decomposition
- 8:11Protect NTFS
- 11:06Dont ever pretty
- 11:21Reserved file names
- 12:49Recap
- 13:09Outro
related talks
14mFive Ways to Break a Git Repository
57mA Piece of Git
35mTerrible Ideas in Git
31mGit Happens or How to fix common git mistakes
22mUsing Git in an (un)orthodox way in your team
39mGetting out of trouble by understanding Git
56mKnowledge is Power: Getting out of Trouble by Understanding Git
35mThe Git you don't know
