<?xml version="1.0" encoding="UTF-8"?>
<guide>
  <body>&lt;p&gt;Copy &lt;em&gt;oldbranch&lt;/em&gt; in &lt;em&gt;repo&lt;/em&gt; to &lt;em&gt;newbranch&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git push {repo} {oldbranch}:heads/{newbranch}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Ex: &lt;code&gt;git push origin foobranch:barbranch&lt;/code&gt;&lt;br /&gt;
renames foobranch to barbranch&lt;/p&gt;</body>
  <created-at type="datetime">2009-06-18T23:44:44-07:00</created-at>
  <id type="integer">97</id>
  <permalink>copy-a-remote-branch</permalink>
  <title>Copy a remote branch</title>
  <updated-at type="datetime">2009-06-18T23:45:03-07:00</updated-at>
  <user-id type="integer">25494</user-id>
</guide>
