Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>(There has been posted another question asking basically the same: <a href="https://stackoverflow.com/questions/1485578/how-do-i-change-a-git-remote-head-to-point-to-something-besides-master/2962737">How do I change a Git remote HEAD to point to something besides “master”</a>, and there was more discussion there, with <a href="http://groups.google.com/group/github/browse_thread/thread/eb3046a7b4c8bec7/b64ee724a0db5471" rel="nofollow noreferrer">a reference to the Github group</a>. So I'd just like to point anyone to that discussion as well.)</p> <p>As we know, there is no universal answer.</p> <p>But there are a specific answers for various git "farms" (where multiple users can manage git repos through a restricted interface: via http and ssh): <a href="http://Github.com" rel="nofollow noreferrer">http://Github.com</a>, <a href="http://Gitorious.org" rel="nofollow noreferrer">http://Gitorious.org</a>, <a href="http://repo.or.cz" rel="nofollow noreferrer">http://repo.or.cz</a>, <a href="http://en.altlinux.org/Git.alt" rel="nofollow noreferrer">Girar</a> (<a href="http://git.altlinux.org" rel="nofollow noreferrer">http://git.altlinux.org</a>). </p> <p>These specific answers might be useful for those reading this page and thinking about these specific services.</p> <ul> <li>Now they have a drop-down menu for selecting the HEAD branch at <strong><a href="http://repo.or.cz" rel="nofollow noreferrer">http://repo.or.cz</a></strong> (example: <a href="http://repo.or.cz/editproj.cgi?name=for-me-and-for-all_imz.git" rel="nofollow noreferrer">http://repo.or.cz/editproj.cgi?name=for-me-and-for-all_imz.git</a>);</li> <li>and at <strong><a href="http://gitorious.org" rel="nofollow noreferrer">http://gitorious.org</a></strong>, too (look somewhere in the settings);</li> <li>and at <strong><a href="http://GitHub.com" rel="nofollow noreferrer">http://GitHub.com</a></strong>: admin > Default Branch > (choose something) (thanks to @srcspider's answer);</li> <li>and in <strong><a href="http://en.altlinux.org/Git.alt" rel="nofollow noreferrer">Girar</a></strong> (running on <a href="http://git.altlinux.org" rel="nofollow noreferrer">http://git.altlinux.org</a> to build packages for ALT's distro), one can the ssh interface for this:</li> </ul> <pre> $ ssh git.alt help | fgrep branch default-branch [] $ </pre> <p>for example <code>ssh git.alt default-branch packages/autosshd.git sisyphus</code> to change the HEAD in the remote repo <code>autosshd.git</code> to point to the <code>sisyphus</code> branch.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload