Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created April 7, 2012 13:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/2328999 to your computer and use it in GitHub Desktop.
Save hail2u/2328999 to your computer and use it in GitHub Desktop.
Say good-bye to `master` branch!

Say Good-Bye to master Branch!

既存のドキュメントをGitHub上で公開する時に必要のないmasterブランチを削除する手順。

GitHub上でfooリポジトリを作成する。

$ cd ~/Projects/foo
$ git init
$ git branch gh-pages
$ git remote add origin git@github.com:hail2u/foo
$ git push --all

GitHub上でgh-pagesをDefault Branchにする。

$ git push origin :master
$ git checkout gh-pages
$ git branch -d master
$ git push -u origin gh-pages

以上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment