How can I tell git that while I want to allow "git fetch" on certain branches that I do not want to allow "git push" on those branches.
In other words, I have some branches which reflect "current work" and I want to push them to my upstream repository. But I have other branches (including master) which I intend to reflect "other work" in the context of the local repository, and I do not want to be stepping on those branches from here.
This is my remote repository, and in other contexts I want to be able to push into all of its branches. But not from this specific local instance.
I think that this is possible, because git remote show origin has told me at times that I have had branches configured for "git pull" but not for "git push". But I do not understand the config files well enough to create this effect manually, and I do not understand git's command line language well enough to do it there, either.
Right now, the best I can do is make sure that my local copy is out of date for upstream branches which I want to remain pristine. (Also, specifying the receiving branch explicitly in my git push command line -- specifying that I only want to push into the remote instance corresponding to the locally checked out branch -- prevents pushing into undesired branches. But I would like to eliminate that complication.)