Push to two repositories at once
git remote set-url --push origin git@github.com:<username>/<reponame>.gitgit remote set-url --add --push origin git@git:/home/git/repos/git push origin
.
Prevent the remote from accepting destructive changes
Destrictive changes are branch deletions and rewriting history.
cd path-to-repo.gitgit config receive.denyNonFastForwards truegit config receive.denyDeletes true
.