Snippets about git
11 snippets
-
SNP 128
#294
Find the commit that broke things with git bisect
Binary search through history, so 200 commits take 8 steps.
-
SNP 091
#35B
LLM prompt for writing commit messages
Paste a diff, get a commit message that follows the conventions and says why, not just what.
-
SNP 087
#694
Delete all branches that are already merged
Thirty old feature branches in git branch? Clean house in one line.
-
SNP 064
#A42
Stop tracking a file without deleting it
You committed .env or a build folder. Get it out of git but keep it on disk.
-
SNP 059
#64B
Sign your commits with your SSH key
Verified badges on GitHub without setting up GPG.
-
SNP 054
#1B3
Different git identity for work and personal projects
Stop committing to work repos with your personal email, automatically.
-
SNP 049
#624
Named stashes
stash@{3} means nothing to anyone. Give your stashes names.
-
SNP 030
#13A
Delete a branch locally and on the remote
The feature is merged, the branch can go.
-
SNP 027
#4B7
Change the last commit message
Fix a typo in the commit message you just wrote.
-
SNP 020
#614
Undo the last commit but keep the changes
Committed too early? Take the commit back without losing any work.
-
SNP 016
#156
Solve Bitbucket SSH-RSA connection issue
How to solve permission denied or no mutual signature algorithm errors while connecting to Bitbucket.