terminal/programs/git: add shell aliases
This commit is contained in:
parent
1357d65442
commit
8a7c459f5e
1 changed files with 32 additions and 0 deletions
|
@ -15,4 +15,36 @@
|
||||||
programs.lazygit = {
|
programs.lazygit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue