Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.