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?


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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