← All tags

Git

3 posts

  • Local-Only Excludes with .git/info/exclude
    · 4 min read

    Ignore personal files in one repo with .git/info/exclude instead of .gitignore. How it compares to .gitignore and core.excludesFile, and how to check with git.

  • Setting NPM Version Without 'v' Prefix
    · 2 min read

    Make npm version create tags like 1.2.3 instead of v1.2.3 with tag-version-prefix. Covers project vs global config, CI release scripts, and a rollback.

  • Changing the Base Branch for Merging in Git
    · 1 min read

    Fix a feature branch based on the wrong parent with git rebase --onto, plus backup and force-with-lease checks that avoid losing work.