git: push --force-if-includes as default

stronger protection against accidentally overwriting remote commits by
another user, especially in the face of auto-fetching git clients.
This commit is contained in:
Trolli Schmittlauch 2025-01-16 22:12:48 +01:00
parent ba88e46046
commit 67904896a2

View file

@ -44,6 +44,7 @@
extraConfig = {
credential.helper = "cache";
push.default = "simple";
push.forceIfIncludes = true; # avoid accidental force overrides when remote is autofetched in background
init.defaultBranch = "mainline";
diff.tool = "vimdiff";
merge.tool = "vimdiff";