
状況
gitで別のブランチで作業しているときに、
[word_balloon id=”mystery_men” size=”M” position=”L” radius=”true” name=”” balloon=”talk” balloon_shadow=”true”]
最新のブランチを更新したから取り込んでおいて―
[/word_balloon]っていうとき。
[word_balloon id=”unset” src=”https://mutsukichi-cooldciel.com/wp-content/uploads/2021/12/1088f865e73a8476d3f3eb4e589ffe90.png” size=”M” position=”L” radius=”true” name=”” balloon=”talk” balloon_shadow=”true”]
最新のブランチ取り込み方わかんねーし、今の作業コードに変にブランチをマージしたらおかしくなりそう
[/word_balloon]これでやってます
- 作業ブランチで git stash
- 作業ブランチからmaster(最新のブランチ)のブランチに移動。
- git pull
- 作業ブランチに移動
- git merge –no-ff [取り込みたいブランチ] で作業ブランチを最新へ
- git stash apply でstashを元に戻す
参考サイト:


コメント