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