よく使う「Gitのmerge」「githubへのpush」「herokuへのデプロイ」3セット
Railsチュートリアルの作業を行っていてよくある保存の作業。
1.Gitをmastarブランチの切り替えてマージする
$ git add . $ git commit -m "作業内容を記入" $ git checkout master $ git merge filling-in-layout
現在のブランチを確認
$ git branch filling-in-layout *master static-pages
2.githubへのpush
$ git push origin master
3.herokuへのデプロイ
$ git push heroku master
herokuでアプリケーションを見る
$ heroku open
herokuでエラーが出たら
$ heroku logs