NISHIO Hirokazu[Translate]
違う名前のブランチにpush
nishioGitでlocalのbranch: Xをremote: originではなくremote: upsteamのbranch: Yにpushしたい。こういう時にどうすればいいか?
gpt
ブランチのpush: ローカルのブランチXをリモートのupstreamのブランチYにpushするには、以下のコマンドを使用します。
$ git push upstream X:Y
ここで、Xはあなたのローカルブランチの名前で、Yはupstreamリモートにpushしたいブランチの名前です。


"Engineer's way of creating knowledge" the English version of my book is now available on [Engineer's way of creating knowledge]

(C)NISHIO Hirokazu / Converted from [Scrapbox] at [Edit]