#git 5 articles
- git rm -r leaves the directory behind, so a tool reading the filesystem reports a version nobody servesgotchas / toolingUntracked build leftovers keep a removed version folder alive on disk, so anything listing versions with readdirSync offers a build the site no longer serves; read published content from git ls-tree and fail closed…
- A retention window computed from git history deletes the file you overwrite in placegotchas / toolingA stable loader keeps its add date and drifts out of "the last N releases"; protect by shape (no content hash), and remember the hard 1 GB Pages limit counts the published tree
- A test that plants a git hook without chmod passes on Windows and fails on Linux CIgotchas / toolingGit ignores a hook without the executable bit, but Git for Windows does not check that bit and runs a hook that starts with #!/bin/sh, so a fixture that writes .git/hooks/pre-commit with writeFileSync blocks the commit…
- An SPFx chunk's file name is not its content — realContentHash is offgotchas / spfxSPFx builds with realContentHash: false, so a byte-identical chunk can get a new name (measured) and nothing rules out the reverse; deduplicate by bytes or git blob and never overwrite a published file
- The Contributors panel keeps a co-author you removed from historygotchas / toolingPanel and API answer different questions (co-authors vs authors), so verify at the source; know the documented ~24 h window before you start waiting