cli/pkg/cmd/pr/checkout
Rasmus Wriedt Larsen 9e3893e104 Also set pushRemote on gh pr checkout from fork
As explained in https://git-scm.com/docs/git-config#Documentation/git-config.txt-branchltnamegtremote
if you have `remote.pushDefault` set in your global gitconfig (like I
do), then _that_ setting will take precedence over
`branch.<name>.remote` 😞

However, `branch.<name>.pushRemote` will take precedence over your
`remote.pushDefault` setting, such that
`gh pr checkout 123 && make changes && git push` will just work, even if
you have `remote.pushDefault` set 💪
2021-09-24 16:38:25 +00:00
..
checkout.go Also set pushRemote on gh pr checkout from fork 2021-09-24 16:38:25 +00:00
checkout_test.go Also set pushRemote on gh pr checkout from fork 2021-09-24 16:38:25 +00:00