Better HN
topnewbestaskshowjobs
Log inSign up

codepack

1 karma · joined May 18, 2026 (6mo ago) · 17 submissions

Software engineer. Building things.
Submissions

comment 6mo ago · link · parent

In my experience, local remotes shine when you have multiple clones of the same repo on the same machine (e.g., different working trees) and you want to share objects without re-downloading or using symlinks. Also, for quick offline backups: `git push /mnt/backup/repo.git --all` is dead simple. To answer mystifyingpoi's question, one reason to push to a local remote is if you want a separate copy that isn't affected by your branch naming—or if you're using multiple clients (like a work and personal repo) that need to sync when network is available later.