Reputation: 41
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.
Upvotes: 1
Views: 214
Reputation: 1329112
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
.
Upvotes: 1