mirror of
https://github.com/zoriya/flake.git
synced 2026-06-04 03:06:54 +00:00
Better git config
This commit is contained in:
+40
-11
@@ -29,20 +29,49 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
gpg.format = "ssh";
|
gpg = {
|
||||||
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
format = "ssh";
|
||||||
push.autoSetupRemote = true;
|
ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
push.default = "upstream";
|
};
|
||||||
|
fetch = {
|
||||||
|
prune = true;
|
||||||
|
pruneTags = true;
|
||||||
|
all = true;
|
||||||
|
};
|
||||||
|
push = {
|
||||||
|
default = "upstream";
|
||||||
|
autoSetupRemote = true;
|
||||||
|
};
|
||||||
pull.ff = "only";
|
pull.ff = "only";
|
||||||
init.defaultBranch = "master";
|
init.defaultBranch = "master";
|
||||||
advice.diverging = false;
|
|
||||||
rerere.enabled = true;
|
|
||||||
rebase.updateRefs = true;
|
|
||||||
rebase.autoStash = true;
|
|
||||||
rebase.autoSquash = true;
|
|
||||||
branch.sort = "-committerdate";
|
branch.sort = "-committerdate";
|
||||||
# Disable hooks
|
tag.sort = "version:refname";
|
||||||
core.hookspath = "/dev/null";
|
advice.diverging = false;
|
||||||
|
rerere = {
|
||||||
|
enabled = true;
|
||||||
|
autoupdate = true;
|
||||||
|
};
|
||||||
|
rebase = {
|
||||||
|
updateRefs = true;
|
||||||
|
autoStash = true;
|
||||||
|
autoSquash = true;
|
||||||
|
};
|
||||||
|
diff = {
|
||||||
|
# newer & better diff algo, why is this not the default?
|
||||||
|
algorithm = "histogram";
|
||||||
|
colorMoved = "plain";
|
||||||
|
renames = true;
|
||||||
|
# use actually understandable prefixes (c/, i/ & w/) instead of a/ b/
|
||||||
|
mnemonicPrefix = true;
|
||||||
|
};
|
||||||
|
# show diff in commit window
|
||||||
|
commit.verbose = true;
|
||||||
|
core = {
|
||||||
|
# Disable hooks (i think i need to run it on each repo too, idk)
|
||||||
|
hookspath = "/dev/null";
|
||||||
|
fsmonitor = true;
|
||||||
|
untrackedCache = true;
|
||||||
|
};
|
||||||
# Break compat with older versions of git (and systems that doesn't support mtime) to have better performances
|
# Break compat with older versions of git (and systems that doesn't support mtime) to have better performances
|
||||||
feature.manyFiles = true;
|
feature.manyFiles = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user