init by ai
This commit is contained in:
30
home/modules/git.nix
Normal file
30
home/modules/git.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Your Name"; # TODO: Customize
|
||||
userEmail = "your.email@example.com"; # TODO: Customize
|
||||
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
rebase.autoStash = true;
|
||||
};
|
||||
|
||||
aliases = {
|
||||
st = "status";
|
||||
co = "checkout";
|
||||
br = "branch";
|
||||
ci = "commit";
|
||||
unstage = "reset HEAD --";
|
||||
last = "log -1 HEAD";
|
||||
visual = "log --graph --oneline --all";
|
||||
};
|
||||
};
|
||||
|
||||
# GPG key signing (optional, uncomment if using)
|
||||
# programs.gpg.enable = true;
|
||||
# services.gpg-agent.enable = true;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user