以下の内容はhttps://anton0825.hatenablog.com/entry/20131105/1387470172より取得しました。


masterブランチの名前をproductionにする方法

最近本番、テスト、開発の各環境用にブランチを切る運用がはやってるけど、本番環境用ブランチの名前がmasterとなるのは違和感があるので名前をproductionにしたい・・・という場合は以下で名前を変えられる。

git checkout -b production master    # create and switch to the production branch
git push -u origin production        # push the release branch to the remote and track it
git branch -d master              # delete local master
git push --delete origin master   # delete remote master
git remote prune origin           # delete the remote tracking branch

参考:version control - How do I rename my git 'master' branch to 'release'? - Stack Overflow
後、Githubではデフォルトブランチをdevelopにしといた方がいいですね。
やり方は↓
Setting the default branch




以上の内容はhttps://anton0825.hatenablog.com/entry/20131105/1387470172より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14