LoginSignup
0
0

More than 3 years have passed since last update.

ポータルサイト創作記:3日目

Posted at

昨日まで
$ rails newのコマンドを使って新しいアプリケーションのファイル群を生成した。
スクリーンショット 2020-04-17 18.28.46.png

今日はGitHubにプッシュしていく。

まずはブランチを切る。
rails-new-appというブランチに切り替わった。
スクリーンショット 2020-04-17 18.30.21.png

同じ階層にあるファイル(.)をインデックスに追加 (git add)。
その後、コミット。すごい数のファイルがコミットされていく。
スクリーンショット 2020-04-17 18.32.01.png

そして、リモートリポジトリにプッシュ。
スクリーンショット 2020-04-17 18.33.29.png

GitHubにはプッシュが届いている。
スクリーンショット 2020-04-17 18.34.37.png

compare changeをチェック。新しいブランチrails-new-appがプルダウンに加わっている。
スクリーンショット 2020-04-17 18.36.10.png

rails-new-appを選択すると…80ものファイル変更が報告されている!
スクリーンショット 2020-04-17 18.36.59.png

コレをpull request
スクリーンショット 2020-04-17 18.41.46.png
変更の内容をコメントに残す。

「Merge pull request」ボタンを押す。
これで、切ったブランチが大元のブランチ(master)にマージ(統合)される。
スクリーンショット 2020-04-17 18.42.21.png

マージされたら、rails-new-appブランチは消す。
スクリーンショット 2020-04-17 18.46.37.png

今日はここまで!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0