Git Top Tips
summary
Advice: checkline endings into the repo with use .gitattributes text=auto rather than relying on per-machine settings because avoid core.autocrlf — mismatched settings cause phantom changes. Store large frequently changing assets with git-lfs for changing binaries (example: a 75 MB PNG produces repeated heavy history unless LFS stores pointer metadata and fetches only the latest file). Recover lost work with git reflog and git-recover (reflog finds prior commits; git-recover can restore staged-but-uncommitted files).
AI-written summary · about
chapters (4)
- 0:00Start
- 0:55Use .gitattributes to manage Line Endings
- 3:10Use Git-LFS for binary files
- 4:55Recovering Data with Git
related talks
32mGit
31mGit Happens or How to fix common git mistakes
43mGit: Undoing Things and recovering from Mistakes
22mUsing Git in an (un)orthodox way in your team
35mTerrible Ideas in Git
41mGetting more from Git
48mBe the .txt you seek: Getting out of trouble by understanding Git
38mGit Best-Practice - Keeping a Diary
