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?

マージ後のプルとブランチを切って作業 手順

0
Last updated at Posted at 2026-01-19

前提

・PR が main にマージ済み

・次の作業を 新しいブランチで始めたい

手順

① main に移動

git switch main

👉 作業は 必ず最新の main から 始める

② リモートの main を取り込む

git pull origin main

👉 これで
・PRでマージされた内容
・他人の変更
すべてローカル main に反映される

③ 新しいブランチを切る

git switch -c ブランチ名

※ 実務では feature/, fix/, design/ などが多い。

④ 現在のブランチ確認

git branch

希望するブランチにいればok

⑤ 作業開始

開発後の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?