Snippets about git

11 snippets

Back to all snippets

  1. SNP 128 #294

    Find the commit that broke things with git bisect

    Binary search through history, so 200 commits take 8 steps.

  2. 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.

  3. SNP 087 #694

    Delete all branches that are already merged

    Thirty old feature branches in git branch? Clean house in one line.

  4. 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.

  5. SNP 059 #64B

    Sign your commits with your SSH key

    Verified badges on GitHub without setting up GPG.

  6. SNP 054 #1B3

    Different git identity for work and personal projects

    Stop committing to work repos with your personal email, automatically.

  7. SNP 049 #624

    Named stashes

    stash@{3} means nothing to anyone. Give your stashes names.

  8. SNP 030 #13A

    Delete a branch locally and on the remote

    The feature is merged, the branch can go.

  9. SNP 027 #4B7

    Change the last commit message

    Fix a typo in the commit message you just wrote.

  10. SNP 020 #614

    Undo the last commit but keep the changes

    Committed too early? Take the commit back without losing any work.

  11. SNP 016 #156

    Solve Bitbucket SSH-RSA connection issue

    How to solve permission denied or no mutual signature algorithm errors while connecting to Bitbucket.