<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: git: fetch and merge, don&#8217;t pull</title>
	<atom:link href="http://longair.net/blog/2009/04/16/git-fetch-and-merge/feed/" rel="self" type="application/rss+xml" />
	<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/</link>
	<description>(occasional miscellanea)</description>
	<lastBuildDate>Thu, 26 Apr 2012 21:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Tyler Gillispie</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-66937</link>
		<dc:creator>Tyler Gillispie</dc:creator>
		<pubDate>Thu, 26 Apr 2012 21:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-66937</guid>
		<description>Great article.  I&#039;m new to Git.  This has helped me clarify some steps required for properly merging between origin and local branches and the difference between the branches.  Props.</description>
		<content:encoded><![CDATA[<p>Great article.  I&#8217;m new to Git.  This has helped me clarify some steps required for properly merging between origin and local branches and the difference between the branches.  Props.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monica Anderson</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-64533</link>
		<dc:creator>Monica Anderson</dc:creator>
		<pubDate>Wed, 28 Mar 2012 18:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-64533</guid>
		<description>After a couple years of working with git this still taught me a lot of really important stuff - an excellent post at the &quot;beyond-the-basics&quot; level git use. Probably best one on the internet at that level. Thank you. And no, it&#039;s not too long. Feel free to write a sequel. :-)</description>
		<content:encoded><![CDATA[<p>After a couple years of working with git this still taught me a lot of really important stuff &#8211; an excellent post at the &#8220;beyond-the-basics&#8221; level git use. Probably best one on the internet at that level. Thank you. And no, it&#8217;s not too long. Feel free to write a sequel. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeyanth kumar</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-63766</link>
		<dc:creator>jeyanth kumar</dc:creator>
		<pubDate>Sun, 18 Mar 2012 16:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-63766</guid>
		<description>heya mark... Awesome post.. :) thanks for the info will read rest of your git posts..:)</description>
		<content:encoded><![CDATA[<p>heya mark&#8230; Awesome post.. :) thanks for the info will read rest of your git posts..:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-62290</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Thu, 01 Mar 2012 11:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-62290</guid>
		<description>Hi Mukundan.  I&#039;m afraid this isn&#039;t a good place to ask general git questions of that kind.  I would suggest that you go to Stack Overflow http://stackoverflow.com and write a question that phrases your problem as clearly as possible.  I think you&#039;ll find that if your question about git is clear then you&#039;ll get an answer very fast.</description>
		<content:encoded><![CDATA[<p>Hi Mukundan.  I&#8217;m afraid this isn&#8217;t a good place to ask general git questions of that kind.  I would suggest that you go to Stack Overflow <a href="http://stackoverflow.com" rel="nofollow">http://stackoverflow.com</a> and write a question that phrases your problem as clearly as possible.  I think you&#8217;ll find that if your question about git is clear then you&#8217;ll get an answer very fast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukundan</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-62168</link>
		<dc:creator>Mukundan</dc:creator>
		<pubDate>Wed, 29 Feb 2012 14:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-62168</guid>
		<description>Hey Mark,
I read your article it just had that piece of info im looking for . I hope so :) .So i just thought of confirming this with you.
Here is my issue:
I forgot to do a git pull before i started working on the local resource.In End of the day i made a lot of changes and when i tried to commmit and push the changes , it dint work.It was then i realised a couple of changes were made in the online repository by my collegues. Since im new to GITHUb i found the git bash scary. Could you tel me how i could decide which files from which source is to be retained and which should be overwritten thru git gui,.. please help me buddy :)</description>
		<content:encoded><![CDATA[<p>Hey Mark,<br />
I read your article it just had that piece of info im looking for . I hope so :) .So i just thought of confirming this with you.<br />
Here is my issue:<br />
I forgot to do a git pull before i started working on the local resource.In End of the day i made a lot of changes and when i tried to commmit and push the changes , it dint work.It was then i realised a couple of changes were made in the online repository by my collegues. Since im new to GITHUb i found the git bash scary. Could you tel me how i could decide which files from which source is to be retained and which should be overwritten thru git gui,.. please help me buddy :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pleintious</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-61568</link>
		<dc:creator>pleintious</dc:creator>
		<pubDate>Fri, 24 Feb 2012 11:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-61568</guid>
		<description>That is too out.</description>
		<content:encoded><![CDATA[<p>That is too out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Rosner</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-61522</link>
		<dc:creator>Bill Rosner</dc:creator>
		<pubDate>Thu, 23 Feb 2012 23:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-61522</guid>
		<description>Great article, TYVM!</description>
		<content:encoded><![CDATA[<p>Great article, TYVM!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Badami</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-58744</link>
		<dc:creator>Roy Badami</dc:creator>
		<pubDate>Thu, 19 Jan 2012 21:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-58744</guid>
		<description>Oh, and I don&#039;t think (although I haven&#039;t used it) that &quot;hg pull -u&quot; will ever perform a merge unless there are any uncommitted changes in the working directory - everything I can see just says it&#039;s equivalient to &quot;hg pull; hg update&quot; which will just pull changes in, and then update the working copy to the latest revision in the current branch.

But whoa!, I didn&#039;t know about hg fetch.  Talk about implicit, not only does it implicitly merge, it even implicitly commits the results of the merge.  (Ok, I imagine you&#039;ll get prompted for a commit message, so you&#039;re unlikely to do so by accident, but still...  IMHO something as wacky as fetch should be an Hg extension so you have to explicitly enable it....)

roy</description>
		<content:encoded><![CDATA[<p>Oh, and I don&#8217;t think (although I haven&#8217;t used it) that &#8220;hg pull -u&#8221; will ever perform a merge unless there are any uncommitted changes in the working directory &#8211; everything I can see just says it&#8217;s equivalient to &#8220;hg pull; hg update&#8221; which will just pull changes in, and then update the working copy to the latest revision in the current branch.</p>
<p>But whoa!, I didn&#8217;t know about hg fetch.  Talk about implicit, not only does it implicitly merge, it even implicitly commits the results of the merge.  (Ok, I imagine you&#8217;ll get prompted for a commit message, so you&#8217;re unlikely to do so by accident, but still&#8230;  IMHO something as wacky as fetch should be an Hg extension so you have to explicitly enable it&#8230;.)</p>
<p>roy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy Badami</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-58742</link>
		<dc:creator>Roy Badami</dc:creator>
		<pubDate>Thu, 19 Jan 2012 21:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-58742</guid>
		<description>Oh, Hi Mark, didn&#039;t realise it was you!

I&#039;m probably being unfair in my complaint about implicit merges - all source code control systems implicitly merge into the working copy all the time.

But in source code control systems I have some familiarity with (SVN, a little Hg) the only merges that I can think of that happen without typing the command &#039;merge&#039; happen when there are uncommitted changes in the working copy, and an operation is performed that updates the working copy (and hence has to merge those changes in).  And AIUI that&#039;s not what we&#039;re talking about here.

There&#039;s also something odd going on with command naming - why is it that a pull is not the opposite of a push?  To have push and fetch be the actual direct counterparts, with pull being something different, is... unnaturual to say the least...

roy</description>
		<content:encoded><![CDATA[<p>Oh, Hi Mark, didn&#8217;t realise it was you!</p>
<p>I&#8217;m probably being unfair in my complaint about implicit merges &#8211; all source code control systems implicitly merge into the working copy all the time.</p>
<p>But in source code control systems I have some familiarity with (SVN, a little Hg) the only merges that I can think of that happen without typing the command &#8216;merge&#8217; happen when there are uncommitted changes in the working copy, and an operation is performed that updates the working copy (and hence has to merge those changes in).  And AIUI that&#8217;s not what we&#8217;re talking about here.</p>
<p>There&#8217;s also something odd going on with command naming &#8211; why is it that a pull is not the opposite of a push?  To have push and fetch be the actual direct counterparts, with pull being something different, is&#8230; unnaturual to say the least&#8230;</p>
<p>roy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://longair.net/blog/2009/04/16/git-fetch-and-merge/comment-page-1/#comment-58707</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Thu, 19 Jan 2012 10:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://longair.net/blog/?p=6#comment-58707</guid>
		<description>Hi Roy - it&#039;s nice to hear from you.  You&#039;re quite right about the terminology - I&#039;ve got a blog post in mind about the most confusing terms in git, e.g. the three different senses of &quot;track&quot; - aargh!)

I hadn&#039;t realized this one before, not being familiar with Mercurial, but, indeed, &lt;a href=&quot;http://mercurial.selenic.com/wiki/GitConcepts#Command_equivalence_table&quot; rel=&quot;nofollow&quot;&gt;it seems that&lt;/a&gt; &quot;hg pull&quot; is closest to &quot;git fetch&quot;, while &quot;hg pull -u&quot; (or &quot;hg fetch&quot; - aargh again!) is closest to &quot;git pull&quot;.

With regard to explicit / implicit, I dunno.  I&#039;d probably argue that using &quot;git pull&quot; is to explicitly request a merge as well as a fetch, since the summary in its man page says &quot;Fetch from and &lt;em&gt;merge with&lt;/em&gt; another repository or a local branch&quot; (my emphasis).  However, part of the point of this blog post is that a lot of newcomers to git don&#039;t realize that you can do &quot;git fetch&quot; instead of &quot;git pull&quot; to avoid the automatic merge.

The thing that I might change in your definition of a merge to make it more &quot;git worldview&quot; is that (usually) merges in git are between two commits (and thus the state of two complete source code trees) rather than a file-by-file operation.  (I say &quot;usually&quot; because you can merge between more than two commits (octopus merges), there are subtree merges, etc. etc.)</description>
		<content:encoded><![CDATA[<p>Hi Roy &#8211; it&#8217;s nice to hear from you.  You&#8217;re quite right about the terminology &#8211; I&#8217;ve got a blog post in mind about the most confusing terms in git, e.g. the three different senses of &#8220;track&#8221; &#8211; aargh!)</p>
<p>I hadn&#8217;t realized this one before, not being familiar with Mercurial, but, indeed, <a href="http://mercurial.selenic.com/wiki/GitConcepts#Command_equivalence_table" rel="nofollow">it seems that</a> &#8220;hg pull&#8221; is closest to &#8220;git fetch&#8221;, while &#8220;hg pull -u&#8221; (or &#8220;hg fetch&#8221; &#8211; aargh again!) is closest to &#8220;git pull&#8221;.</p>
<p>With regard to explicit / implicit, I dunno.  I&#8217;d probably argue that using &#8220;git pull&#8221; is to explicitly request a merge as well as a fetch, since the summary in its man page says &#8220;Fetch from and <em>merge with</em> another repository or a local branch&#8221; (my emphasis).  However, part of the point of this blog post is that a lot of newcomers to git don&#8217;t realize that you can do &#8220;git fetch&#8221; instead of &#8220;git pull&#8221; to avoid the automatic merge.</p>
<p>The thing that I might change in your definition of a merge to make it more &#8220;git worldview&#8221; is that (usually) merges in git are between two commits (and thus the state of two complete source code trees) rather than a file-by-file operation.  (I say &#8220;usually&#8221; because you can merge between more than two commits (octopus merges), there are subtree merges, etc. etc.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

