Can you provide a list of (all, or the most common) the operations or commands that can compromise the history in git?
What should be absolutely avoided?
From experience one of the most dangerous commands is
git push -f mirror
This mirrors your local repo onto remote in process removing all other branches other than the ones you have on your local repo.