<?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: Cleaning Out Git Remotes The Easy Way</title>
	<atom:link href="http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Mon, 20 May 2013 17:13:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2187</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Tue, 31 Jan 2012 23:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2187</guid>
		<description>i knew there was a better way than what i was doing! :)</description>
		<content:encoded><![CDATA[<p>i knew there was a better way than what i was doing! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2186</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 31 Jan 2012 22:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2186</guid>
		<description>git remote &#124; grep -v &#039;origin&#039; &#124; while read REMOTE; do
&gt; git remote rm $REMOTE
&gt; done

This would be better though:

git remote &#124; grep -v &#039;origin&#039; &#124; xargs -L1 git remote rm $*</description>
		<content:encoded><![CDATA[<p>git remote | grep -v &#8216;origin&#8217; | while read REMOTE; do<br />
&gt; git remote rm $REMOTE<br />
&gt; done</p>
<p>This would be better though:</p>
<p>git remote | grep -v &#8216;origin&#8217; | xargs -L1 git remote rm $*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2185</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 31 Jan 2012 21:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2185</guid>
		<description>May I recommed

www.stackoverflow.com ?

:)</description>
		<content:encoded><![CDATA[<p>May I recommed</p>
<p><a href="http://www.stackoverflow.com" rel="nofollow">http://www.stackoverflow.com</a> ?</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2184</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Tue, 31 Jan 2012 21:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2184</guid>
		<description>doh! thanks for letting me know about that. i&#039;ll see if we can get that fixed.</description>
		<content:encoded><![CDATA[<p>doh! thanks for letting me know about that. i&#8217;ll see if we can get that fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark IJbema</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2183</link>
		<dc:creator>Mark IJbema</dc:creator>
		<pubDate>Tue, 31 Jan 2012 21:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2183</guid>
		<description>Your comment-rss link is broken btw..</description>
		<content:encoded><![CDATA[<p>Your comment-rss link is broken btw..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark IJbema</title>
		<link>http://lostechies.com/derickbailey/2012/01/31/cleaning-out-git-remotes-the-easy-way/#comment-2182</link>
		<dc:creator>Mark IJbema</dc:creator>
		<pubDate>Tue, 31 Jan 2012 20:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=791#comment-2182</guid>
		<description>Though you can actually do this with bash-fu, most of the times I do this by using perl oneliners, so for instance:

git remote &#124; perl -pe &#039;if(!/origin/){s/.*/rm $&amp;/}else{$_=&quot;&quot;}&#039;                                                                       

And if you like like what you see, add &#124; sh

Personally I think Perl is just a bit more readable/writeable, without becoming to verbose (i dislike ruby for this, since it&#039;s not that well suited for writing oneliners imho)</description>
		<content:encoded><![CDATA[<p>Though you can actually do this with bash-fu, most of the times I do this by using perl oneliners, so for instance:</p>
<p>git remote | perl -pe &#8216;if(!/origin/){s/.*/rm $&amp;/}else{$_=&#8221;"}&#8217;                                                                       </p>
<p>And if you like like what you see, add | sh</p>
<p>Personally I think Perl is just a bit more readable/writeable, without becoming to verbose (i dislike ruby for this, since it&#8217;s not that well suited for writing oneliners imho)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
