Skip to content

Commit db04510

Browse files
committed
deny history overwrite
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent 61157ca commit db04510

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SECURITY.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,16 @@ Key fingerprint = 475F 3B8E 59E6 E63A A780 6748 2C7B 12F2 A511 E325
2020
uid Ceki Gulcu <[email protected]>
2121
sub 2048R/7FBFA159 2012-04-26
2222
```
23+
24+
## Preventing commit history overwrite
25+
26+
In order to prevent loss of commit history, developers of the project
27+
are highly encouraged to deny branch deletions or history overwrites
28+
by invoking the following two commands on their local copy of the
29+
repository.
30+
31+
32+
```
33+
git config receive.denyDelete true
34+
git config receive.denyNonFastForwards true
35+
```

0 commit comments

Comments
 (0)