Expanded git config

This commit is contained in:
Leonora Tindall 2024-02-19 13:25:14 -06:00
parent ffc01f8680
commit 4e7fb6dca2
2 changed files with 52 additions and 0 deletions

35
git.nix
View File

@ -7,6 +7,41 @@
delta.enable = true;
extraConfig = {
init.defaultBranch = "main";
push.default = "current";
color.ui = "auto";
alias = {
aa = "add --all";
ap = "add --patch";
branches = ''for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes'';
ci = "commit -v";
co = "checkout";
pf = "push --force-with-lease";
st = "status";
};
core = {
excludesfile = "~/.gitignore";
autocrlf = "input";
};
merge = {
ff = "only";
conflictstyle = "diff3";
};
fetch.prune = true;
rebase.autosquash = true;
diff.colorMoved = "default";
delta = {
navigate = true;
light = false;
};
sendemail = {
smtpserver = "smtp.fastmail.com";
smtpuser = "nora@nora.codes";
smtpencryption = "ssl";
smtpserverport = "465";
smtppass = "c75fkegmmwlndhnz";
};
};
};
home.file.".gitignore".source = ./rcfiles/gitignore;
}

17
rcfiles/gitignore Normal file
View File

@ -0,0 +1,17 @@
*.pyc
*.sw[nop]
.DS_Store
.bundle
.byebug_history
.env
.git/
/bower_components/
/log
/node_modules/
/tmp
/vendor
db/*.sqlite3
log/*.log
rerun.txt
tmp/**/*
/tags