LoginSignup
1
2

More than 1 year has passed since last update.

Gitでブランチ切る→マージ→mainに戻るまでの流れ(自分用メモ)

Posted at
git checkout -b ブランチ名 

作業が終わったら、

git add .
git commit -m"コミット名"

下記コマンドでpush、mainに戻ってマージ、pushまでをすることができる。

git push origin HEAD && git checkout main && git merge - && git push origin HEAD
1
2
1

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
1
2