Pick your Default Branch

Most repos use the branch master as their default, but Git doesn’t force this upon you and why should we? Now you can change it to whatever you want. This means two things (using ant as an example):

  • http://github.com/apache/ant redirects to http://github.com/apache/ant/tree/trunk
  • git clone git://github.com/apache/ant.git will have trunk checked out by default

Have feedback on this post? Let @github know on Twitter.
Need help or found a bug? Contact us.



Discover new ways to build better

Try Marketplace apps free for 14 days

Learn more