git: Add aliases
This commit is contained in:
parent
9ec9b078dd
commit
041262fc7a
|
@ -47,5 +47,35 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
aliases = {
|
||||
ls = "log --stat";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
ga = "git add";
|
||||
gap = "git add --patch";
|
||||
gc = "git commit";
|
||||
gco = "git checkout";
|
||||
gcp = "git cherry-pick";
|
||||
gcv = "git commit --verbose";
|
||||
gd = "git diff";
|
||||
gdc = "git diff --cached";
|
||||
gfom = "git fetch origin master";
|
||||
gl = "git log";
|
||||
glp = "git log --patch";
|
||||
gls = "git log --stat";
|
||||
gp = "git push";
|
||||
grb = "git rebase";
|
||||
grbi = "git rebase -i";
|
||||
grbim = "git rebase -i master";
|
||||
grbm = "git rebase master";
|
||||
grbom = "git rebase origin/master";
|
||||
grs = "git restore";
|
||||
grss = "git restore --staged";
|
||||
gs = "git switch";
|
||||
gsm = "git switch master";
|
||||
gst = "git status";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue