Commit 3fdd3d2
committed
Prevent commit of conflict markers
This commit introduces a pre-commit hook that checks for merge conflict
markers (e.g. "<<<<<<<", "=======", ">>>>>>>") in staged changes. If any
are detected, the hook warns the user and aborts the commit, ensuring
that unresolved conflict markers are not inadvertently committed.
Reference:
https://blog.meain.io/2019/making-sure-you-wont-commit-conflict-markers/
Change-Id: Ia3b058298f9e38227bdbd7a3634ed9b0b855e3741 parent 6743ed9 commit 3fdd3d2
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
0 commit comments