From e454d28282e5db980d5be7afb3a5894b9ac9b35c Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Wed, 11 May 2022 12:02:06 +0200 Subject: [PATCH] deny history overwrite Signed-off-by: Ceki Gulcu --- SECURITY.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SECURITY.md b/SECURITY.md index df65dd44d..2c2a43650 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -21,3 +21,17 @@ Key fingerprint = 475F 3B8E 59E6 E63A A780 6748 2C7B 12F2 A511 E325 uid Ceki Gulcu sub 2048R/7FBFA159 2012-04-26 ``` + + +## Preventing commit history overwrite + +In order to prevent loss of commit history, developers of the project +are highly encouraged to deny branch deletions or history overwrites +by invoking the following two commands on their local copy of the +repository. + + +``` +git config receive.denyDelete true +git config receive.denyNonFastForwards true +``` \ No newline at end of file