<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-09-23:447974</id>
  <title>pvaneynd</title>
  <subtitle>pvaneynd</subtitle>
  <author>
    <name>pvaneynd</name>
  </author>
  <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom"/>
  <updated>2011-03-29T08:22:50Z</updated>
  <dw:journal username="pvaneynd" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:138829</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/138829.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=138829"/>
    <title>google me: changing the branch in a bare git repository</title>
    <published>2011-02-26T09:34:27Z</published>
    <updated>2011-03-29T08:22:50Z</updated>
    <category term="life"/>
    <category term="git"/>
    <category term="debian"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">If you are using something like git.debian.org to share repositories and you have done major surgery that makes that 'master' became invalid this is easy to fix in your local repository:&lt;br /&gt;&lt;br /&gt;git checkout new-master&lt;br /&gt;git branch -D master&lt;br /&gt;git branch -m new-master master&lt;br /&gt;&lt;br /&gt;but what do you do with the bare repository on git.debian.org? Well you can do:&lt;br /&gt;&lt;br /&gt;git branch -m master old-master&lt;br /&gt;git branch -m new-master master&lt;br /&gt;git symbolic-ref HEAD refs/heads/master&lt;br /&gt;git branch -D old-master&lt;br /&gt;&lt;br /&gt;of course anybody who was following this git repository now has problems ...&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=138829" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
