Git

2 notes · 3 Dec 2026 – 4 Dec 2026

Week 49

30 Nov – 6 Dec 2026

2 notes

  1. A global remote.origin.fetch refspec creates a phantom 'origin' remote in every repo

    Putting pull-request fetch refspecs under remote.origin in the global gitconfig makes git report a remote named origin without a URL in every repository, including new ones that have no remote.

  2. git merge -X ours on a stacked branch can silently drop other PRs' changes

    Merging main into a stacked branch with git merge -X ours also resolved hunks where an unrelated squash-merged PR had edited the same method, so that PR's change disappeared without a conflict marker or a failing build.

All topics