First, the title (subject) of this email is misleading: it is about
your solution, and not about the problem you have (protecting against
"git push --force").
Second, there are two possible solutions: use receive.denyNonFastForwards
and perhaps also receive.denyDeletes (see git-config(1)) to forbid forced
pushes on server (target of push); removing '--force' is a client solution.
Or, better, use update or post-receive hook on server, forbidding
non-fastforward updates to selected set of 'stable' branches; you can
use contrib/hooks/update-paranoid for that.
--
Jakub Narebski
Poland
ShadeHawk on #git
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html