<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jpcamargo &#187; howto</title>
	<atom:link href="http://jpcamargo.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://jpcamargo.com</link>
	<description>ruby &#039;mind.rand&#039; &#124; awk &#039;{ print $1 }&#039;</description>
	<lastBuildDate>Mon, 10 May 2010 17:41:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>git, pushing to multiple repositories</title>
		<link>http://jpcamargo.com/2009/09/21/git-pushing-to-multiple-repositories/</link>
		<comments>http://jpcamargo.com/2009/09/21/git-pushing-to-multiple-repositories/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 21:25:00 +0000</pubDate>
		<dc:creator>jp</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[boat]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dolphin]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http:///2009/09/21/git-pushing-to-multiple-repositories</guid>
		<description><![CDATA[I was looking for a way to keep more than one repository updated when I&#8217;m working on personal projects, don&#8217;t ask. So I found some useful information I&#8217;m going to post here for future reference.
Example part of a &#8220;.git/config&#8221; file:
[remote 'all']
    url=ssh://user&#38;#64;server/repos/g0.git
    url=ssh://user&#38;#64;server/repos/g1.git
    url=ssh://user&#38;#64;server/repos/g2.git
   [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to keep more than one repository updated when I&#8217;m working on personal projects, don&#8217;t ask. So I found some useful information I&#8217;m going to post here for future reference.</p>
<p>Example part of a &#8220;.git/config&#8221; file:</p>
<pre><code>[remote 'all']
    url=ssh://user&amp;#64;server/repos/g0.git
    url=ssh://user&amp;#64;server/repos/g1.git
    url=ssh://user&amp;#64;server/repos/g2.git
    url=ssh://user&amp;#64;server/repos/g3.git</code></pre>
<p>With that &#8220;git push all&#8221; should push to all the remotes simultaneously.</p>
<p>If you have:</p>
<pre><code>[branch 'master']
    remote = g0
    merge = refs/heads/master
[remote 'g0']
    url = ssh://user&amp;#64;server/repos/g0.git
    fetch = +refs/heads/*:refs/remotes/g0/*</code></pre>
<p>Then &#8220;pulls&#8221; and &quot;fetch&quot;&#8217;s while on the master branch should only only target <code>ssh://user&amp;#64;server/repos/g0.git</code>.</p>
<p>Better yet:</p>
<pre><code>[branch 'master']
    remote = origin
    merge = refs/heads/master
[remote 'origin']
    url = ssh://user&amp;#64;server/repos/g0.git
    fetch = +refs/heads/*:refs/remotes/g0/*</code></pre>
<p>Then <code>ssh://user&amp;#64;server/repos/g0.git</code> is the default remote (&#8220;origin&#8221;) for pulls and fetches if no remote name is specified.</p>
<p><a href="http://marc.info/?l=git&amp;m=116231242118202&amp;w=2">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jpcamargo.com/2009/09/21/git-pushing-to-multiple-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
