Michael Boutin

#git

1 article and 4 snippets

Articles

Snippets

  • 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