<?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>Seven steps &#187; move</title>
	<atom:link href="http://trevoke.net/blog/tag/move/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevoke.net/blog</link>
	<description>Martial arts and technology, $DEITY what a mix!</description>
	<lastBuildDate>Tue, 11 May 2010 20:52:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Git : moving a remote branch</title>
		<link>http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/</link>
		<comments>http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 22:08:43 +0000</pubDate>
		<dc:creator>Trevoke</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[move]]></category>

		<guid isPermaLink="false">http://trevoke.net/blog/?p=204</guid>
		<description><![CDATA[One can&#8217;t actually move a remote branch, but you can copy a branch and delete a branch, so&#8230; Copy oldbranch in repo to newbranch. git push {repo} {oldbranch}:heads/{newbranch} Ex: git push origin foobranch:barbranch renames foobranch to barbranch Remove a remote branch: it’s all about the colon: git push &#60;remote_repo&#62; :heads/&#60;branch&#62; Example: git push origin :heads/some-branch [...]]]></description>
			<content:encoded><![CDATA[<p>One can&#8217;t actually move a remote branch, but you can copy a branch and delete a branch, so&#8230;</p>
<p>Copy oldbranch in repo to newbranch.</p>
<pre class="brush: plain;">git push {repo} {oldbranch}:heads/{newbranch}</pre>
<p>Ex: git push origin foobranch:barbranch<br />
renames foobranch to barbranch</p>
<p>Remove a remote branch: it’s all about the colon:</p>
<pre class="brush: plain;">git push &lt;remote_repo&gt; :heads/&lt;branch&gt;</pre>
<p>Example: git push origin :heads/some-branch removes some-branch from the remote repo (apparently git push origin :some-branch works as well).</p>
<p>This works for removing a tag as well: git push origin :sometag</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Send to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/&amp;title=Git+%3A+moving+a+remote+branch" title="Add 'Git : moving a remote branch' to digg"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Git : moving a remote branch' to digg" alt="Add 'Git : moving a remote branch' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/&amp;title=Git+%3A+moving+a+remote+branch" title="Add 'Git : moving a remote branch' to reddit"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Git : moving a remote branch' to reddit" alt="Add 'Git : moving a remote branch' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/" title="Add 'Git : moving a remote branch' to Technorati"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Git : moving a remote branch' to Technorati" alt="Add 'Git : moving a remote branch' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/&amp;h=Git+%3A+moving+a+remote+branch" title="Add 'Git : moving a remote branch' to Newsvine"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/newsvine.png" title="Add 'Git : moving a remote branch' to Newsvine" alt="Add 'Git : moving a remote branch' to Newsvine" /></a><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/&amp;title=Git+%3A+moving+a+remote+branch" title="Add 'Git : moving a remote branch' to Stumble Upon"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Git : moving a remote branch' to Stumble Upon" alt="Add 'Git : moving a remote branch' to Stumble Upon" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?title=Git+%3A+moving+a+remote+branch&amp;url=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/" title="Add 'Git : moving a remote branch' to SlashDot"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Git : moving a remote branch' to SlashDot" alt="Add 'Git : moving a remote branch' to SlashDot" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/&amp;t=Git+%3A+moving+a+remote+branch" title="Add 'Git : moving a remote branch' to FaceBook"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Git : moving a remote branch' to FaceBook" alt="Add 'Git : moving a remote branch' to FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Git+%3A+moving+a+remote+branch&amp;c=http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/" title="Add 'Git : moving a remote branch' to MySpace"><img src="http://trevoke.net/blog/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Git : moving a remote branch' to MySpace" alt="Add 'Git : moving a remote branch' to MySpace" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://trevoke.net/blog/2009/12/29/git-moving-a-remote-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
