🔺
gh pr checkoutしたブランチのデフォルトのリモートを変更する
tl;dr
git config --local --unset branch.[ブランチ名].pushremote
git branch -u [リモート]/[ブランチ]
きっかけ
他人が作ったPRを引き継ぐ時に、branch -uしてもpushすると毎回エラーを吐かれていた。
めっちゃ詰まったので共有。
git config --local --unset branch.[ブランチ名].pushremote
git branch -u [リモート]/[ブランチ]
他人が作ったPRを引き継ぐ時に、branch -uしてもpushすると毎回エラーを吐かれていた。
めっちゃ詰まったので共有。
Discussion