I've forked a private repository hosted on Github and intend to do all my work in my fork and submit pull requests from my fork to the main repository.
I've configured my remotes so origin
points to my fork, and upstream
points to the main repository (so I can keep my fork's master branch in sync with the main repo).
I'd like to maintain my ability to have full access to the repository on Github, but as a safety precaution, want to disable my ability to push to origin
directly from my local machine.
Is this possible with a configuration to my remotes on my local machine?