fix git deprecate issue

This commit is contained in:
Yan Lin 2025-10-23 19:04:22 +02:00
parent f29862b9e3
commit 255c2739a3

View file

@ -8,9 +8,6 @@
programs.git = {
enable = true;
userName = "Yan Lin";
userEmail = "github@yanlincs.com";
ignores = [
# Claude Code
"**/.claude/settings.local.json"
@ -29,7 +26,12 @@
".env.*.local"
];
extraConfig = {
settings = {
user = {
name = "Yan Lin";
email = "github@yanlincs.com";
};
# Platform-specific credential configuration
credential = {
# OAuth platforms (handled by git-credential-oauth)
@ -71,34 +73,5 @@
showUntrackedFiles = "all";
};
};
aliases = {
st = "status";
co = "checkout";
br = "branch";
ci = "commit";
unstage = "reset HEAD --";
last = "log -1 HEAD";
visual = "!gitk";
# Better logging
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
lga = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all";
# Quick operations
up = "pull --rebase";
cm = "commit -m";
ca = "commit --amend";
# Show changes
d = "diff";
dc = "diff --cached";
ds = "diff --stat";
# Stash operations
sl = "stash list";
sp = "stash pop";
ss = "stash save";
};
};
}