---
title: "Multiple URLs in Git Remote"
url: https://daily.dev/posts/multiple-urls-in-git-remote-tzkymfdfa
source_url: https://susam.net/multiple-urls-in-git-remote.html
type: article
source: "Susam Pal"
published: 2026-04-29T17:01:42.038Z
updated: 2026-04-29T17:04:29.317Z
tags: ["git", "version-control"]
reading_time: 5
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Multiple URLs in Git Remote

**[Susam Pal](https://daily.dev/sources/susam-net)** · 5 min read · 0 upvotes · 0 comments

## Summary

Git remotes can hold multiple URLs, enabling a single push to update several repositories simultaneously. When multiple URLs are added without a pushurl, the first URL is used for fetches while all URLs receive pushes. Setting an explicit pushurl overrides this behavior, restricting pushes to only those specified locations while fetches still come from the first URL. This is useful for mirroring scenarios but should be used carefully, as diverging fetch and push targets can cause confusing state in the local tracking branches.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://susam.net/multiple-urls-in-git-remote.html>

## Similar posts on daily.dev

- [You already have a git server: \(Maurycy's blog\)](https://daily.dev/posts/you-already-have-a-git-server-maurycy-s-blog--z2gsbe3ok) · Hacker News · 3 upvotes · 0 comments

---

Tags: [#git](https://daily.dev/tags/git), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/multiple-urls-in-git-remote-tzkymfdfa)
