0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Git] ブランチの作成とpush

Posted at

作業ブランチを作成

ブランチ一覧を表示

$ git branch -a

ブランチを作成して移動

$ git checkout -b [branch_name]

push

全ファイルをステージング

$ git add .

コミット

$ git commit -m "Commit Message"

リモートリポジトリにプッシュ

$ git push origin [branch_name]

ブランチをマージ

masterブランチに移動

$ git checkout master

[branch_name]をマージ

$ git merge [branch_name]

push

$ git push origin master

参考

[Git] 基礎 ~master反映まで~
git mergeを使ってブランチをマージする方法【初心者向け】
gitを使用したブランチ作成からpushまでの簡単な流れ
【Git】安全にリモートブランチにPushする

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?