1

I have to pull request, but push upstream repository.

How to limit push to particular remote repository?

my hope is limit push to my upstream repository.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Gwon Boram
  • 41
  • 5

1 Answers1

1

If your remote repo from which you are pulling the pull request is named "pr" (for example, but see what git remote -v returns), you can do as described in "git how to disable push":

git remote set-url --push pr no_push

That would leave the remote "origin" (which should be your upstream repo) untouched, and you would be able to push only to origin.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250