4

Is it possible to publish a project page to http://username.github.com/ instead of http://username.github.com/projectname?

Ha Sh
  • 724
  • 5
  • 26
Jason French
  • 394
  • 2
  • 15

2 Answers2

6

Create a repository called username.github.com and it will automatically be used as your top-level page.

jrbalsano
  • 834
  • 7
  • 18
2

Note that since April 2013 ("New GitHub Pages domain: github.io"):

  • User Pages repositories may now be named using the new username/username.github.io
  • Existing User Pages repositories named like username/username.github.com do not need to be renamed and will continue to be published indefinitely.
  • If both a username.github.io and a username.github.com repository exists, the username.github.io version wins.

So the solution is still valid, but be aware that:

If your Pages site was previously served from a username.github.com domain, all traffic will be redirected to the new username.github.io location indefinitely, so you won't have to change any links.
For example, newmerator.github.com now redirects to newmerator.github.io.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250