mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Manage most of my git configuration
This commit is contained in:
parent
c810657197
commit
0e96760c77
1 changed files with 16 additions and 1 deletions
|
|
@ -47,9 +47,23 @@
|
|||
git = {
|
||||
enable = true;
|
||||
delta.enable = true;
|
||||
includes = [ { path = "~/.gitconfig-local"; }];
|
||||
lfs.enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
};
|
||||
userName = "Gene Liverman";
|
||||
extraConfig = {
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
merge = {
|
||||
conflictStyle = "diff3";
|
||||
tool = "meld";
|
||||
};
|
||||
pull = {
|
||||
rebase = false;
|
||||
};
|
||||
};
|
||||
}; # end git
|
||||
go = {
|
||||
enable = true;
|
||||
goPath = "go";
|
||||
|
|
@ -139,6 +153,7 @@
|
|||
history.size = 1000000;
|
||||
initExtra = ''
|
||||
[ -f ~/.private-env ] && source ~/.private-env || echo '~/.private-env is missing'
|
||||
[ -f ~/.gitconfig-local ] || echo '~/.gitconfig-local is missing. Create it and set user.email'
|
||||
|
||||
# Start GPG agent
|
||||
# Some tips from https://hedberg.io/yubikey-for-ssh/ helped simplify this:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue