First Commit
This commit is contained in:
22
home/terminal/git.nix
Normal file
22
home/terminal/git.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ email, prettyUsername, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
user = {
|
||||
name = "${prettyUsername}";
|
||||
email = "${email}";
|
||||
};
|
||||
|
||||
# FOSS-friendly settings
|
||||
push.default = "simple"; # Match modern push behavior
|
||||
credential.helper = "cache --timeout=7200";
|
||||
init.defaultBranch = "main"; # Set default new branches to 'main'
|
||||
log.decorate = "full"; # Show branch/tag info in git log
|
||||
log.date = "iso"; # ISO 8601 date format
|
||||
# Conflict resolution style for readable diffs
|
||||
merge.conflictStyle = "diff3";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user