マージ後の流れ(初学者が困るGitの操作)
1. ローカルのmasterの状態をリモートに反映
// 作業中のブランチからmasterに移動
$ git checkout master
// リモートの状態をmasterに反映
$ git pull origin
2. 作業中のブランチにリモートの状態を反映
// masterから作業中のブランチに移動
git checkout 作業中のブランチ名
// 現在の位置を確認
git branch -a
// masterと作業中のブランチの差をなくす
git rebase (master)
3. プッシュする
git push origin --force-with-lease
4. 作業を再開
## おすすめ
この記事が気に入ったらサポートをしてみませんか?