Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は自分のローカルブランチで開発を行ってきました。私はそれに多くのコミットを行ってきました。すべてのコミットを別のリモート トラッキング ブランチ (ローカル ブランチを作成したブランチとは異なる) にプッシュするにはどうすればよいですか?
git push local_branch:remote_branch
git push origin localbranch:remotebranch
ただし、最初にリモートブランチで発生した変更をフェッチし、ローカルブランチをそのブランチにマージしてから、プッシュする方がよい場合があります。