visual studio – git push – any switch to BLOCK any edits or removes?


git push – any switch to BLOCK any edits or removes?

There are many switches for git push. Simply I am looking for a switch that will ensure developers who use git push ONLY perform commit ADDS.. NO edits, and NO removes from the ref history.

Is there a switch to ensure that. I parsed through all the switches but to me it looks like git push with NO switch is the safest way to push.

Granted this only speaks for the command line, not Visual Studio git UX.

And yes I realize in GitHub and ADO you can deny –force push on the server side.

I was just looking for a switch to share with my dev team to help them be confident they don’t overwrite anyone else’s work, only add to it. We have had a few accidents.

w

Leave a Reply

Your email address will not be published. Required fields are marked *