Michael Boutin

Snippets

Short, copy-pastable code I keep reaching for.

  • bash

    Change a git remote's URL

    Point an existing remote at a new URL without removing and re-adding it.

    May 10, 2026
  • bash

    Delete local and remote git branches

    Delete branches one at a time, or sweep up local branches whose upstream has already been deleted.

    May 10, 2026
  • bash

    Remove node_modules from a git repo

    Stop tracking a committed node_modules folder and ignore it going forward.

    May 10, 2026
  • bash

    Stop tracking a file that's already committed

    Adding a path to .gitignore does not untrack files git already knows about. Use git rm --cached to drop it from the index while keeping the local copy.

    May 6, 2026
  • bash

    Apply a shadcn preset with the CLI

    Update a project's shadcn config and UI components from a preset using the official init command.

    May 6, 2026