2024-10-09 13:44:35 +00:00
|
|
|
{
|
2024-08-25 19:58:12 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2024-09-24 13:09:36 +00:00
|
|
|
userName = "Anthony Rodriguez";
|
2024-08-25 19:58:12 +00:00
|
|
|
userEmail = "anthony@nezia.dev";
|
|
|
|
signing = {
|
|
|
|
signByDefault = true;
|
|
|
|
key = "EE3BE97C040A86CE";
|
|
|
|
};
|
2024-10-09 13:44:35 +00:00
|
|
|
extraConfig = {
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.lazygit = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-12-02 22:07:38 +00:00
|
|
|
|
|
|
|
home.shellAliases = {
|
|
|
|
g = "git";
|
|
|
|
gs = "git status";
|
|
|
|
gsh = "git show HEAD";
|
|
|
|
gshs = "DELTA_FEATURES=+side-by-side git show HEAD";
|
|
|
|
ga = "git add";
|
|
|
|
gaa = "git add :/";
|
|
|
|
gap = "git add -p";
|
|
|
|
gc = "git commit";
|
|
|
|
gca = "git commit --amend";
|
|
|
|
gcm = "git commit --message";
|
|
|
|
gcf = "git commit --fixup";
|
|
|
|
gk = "git checkout";
|
|
|
|
gkp = "git checkout -p";
|
|
|
|
gd = "git diff";
|
|
|
|
gds = "DELTA_FEATURES=+side-by-side git diff";
|
|
|
|
gdc = "git diff --cached";
|
|
|
|
gdcs = "DELTA_FEATURES=+side-by-side git diff --cached";
|
|
|
|
gf = "git fetch";
|
|
|
|
gl = "git log";
|
|
|
|
glp = "git log -p";
|
|
|
|
glps = "DELTA_FEATURES=+side-by-side git log -p";
|
|
|
|
gp = "git push";
|
|
|
|
gpf = "git push --force-with-lease";
|
|
|
|
gr = "git reset";
|
|
|
|
gra = "git reset :/";
|
|
|
|
grp = "git reset -p";
|
|
|
|
gt = "git stash";
|
|
|
|
gtp = "git stash pop";
|
|
|
|
gu = "git pull";
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
}
|