Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking into the tools neccessary to give other people write access to a git repository. I understand that git repositories are accessed using SSH with a locked-in command like gitosis or gitolite. I learned that git, unlike Subversion, which simply doesn't support any history-changing operations, has certain operations that can actually destroy data, for example git push --force. Are there more such operation that need to be denied to remote users?

share|improve this question
up vote 3 down vote accepted

git push --force is really the only one that you need to worry about. The other one that could cause issues would be removing a branch, but at least with gitolite if you can't push --force then you can't delete a branch.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.