<?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>Bradly Feeley &#187; Git</title>
	<atom:link href="http://bradlyfeeley.com/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradlyfeeley.com</link>
	<description>San Diego Ruby on Rails Developer</description>
	<lastBuildDate>Wed, 07 Oct 2009 02:50:47 +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>Update a Github Fork from the Original Repo</title>
		<link>http://bradlyfeeley.com/2008/09/03/update-a-github-fork-from-the-original-repo/</link>
		<comments>http://bradlyfeeley.com/2008/09/03/update-a-github-fork-from-the-original-repo/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 05:13:05 +0000</pubDate>
		<dc:creator>Bradly Feeley</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://bradlyfeeley.com/?p=10</guid>
		<description><![CDATA[Feather Blog has made some great progress recently and when looking to update my fork I found myself staring at my repo not sure what to do. My wonderful Github didn&#8217;t give me a one-click way to pull updates from the original repository (or any other fork for that matter). I&#8217;ll demonstrate how to do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/mleung/feather/wikis" target="_blank">Feather Blog</a> has made <a href="http://blog.merbivore.com/">some great progress</a> recently and when looking to update my fork I found myself staring at my repo not sure what to do. My wonderful <a href="http://github.com/">Github</a> didn&#8217;t give me a one-click way to pull updates from the original repository (or any other fork for that matter). I&#8217;ll demonstrate how to do this with <a href="http://github.com/bradly/feather/tree/master">my fork</a> of Feather. I&#8217;ll assume you already have a locally copy of a repo with everything committed and up-to-date.</p>
<p>First you need to add a remote branch to your repository that points to the original repo you forked from.</p>
<p><code>git remote add --track master mleung git://github.com/mleung/feather.git</code></p>
<p>You will want to replace &#8216;master&#8217; with the branch you want to track in the remote repo. In most cases this will be master, although you could replace it with edge or any other branch. You should also replace &#8216;mleung&#8217; is what you the remote will be called.</p>
<p>To verify the remote repository was added run</p>
<p><code>git remote</code></p>
<p>You should see the new remote repo, in this case named &#8216;mleung&#8217;, along with any other remote repositories you may have previously added.</p>
<p>Now we can fetch all the changes from mleung&#8217;s code base.</p>
<p><code>git fetch mleung</code></p>
<p>This will create a new remote branch called &#8216;mleung/master&#8217;. Now we are ready to merge the code from the remote repository.</p>
<p><code>git merge mleung/master</code></p>
<p>That&#8217;s it. Remember, this process isn&#8217;t limited only to the original repository. Feel free to add remote branches for other user&#8217;s forks or even from repositories outside Github.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradlyfeeley.com/2008/09/03/update-a-github-fork-from-the-original-repo/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
