blob: bd79f66beb3aee1ff5b19c69efaae9498e2d7310 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# This module defines my personal git aliases. Some of these are
# pseudo-subcommands which are easier to remember while others simply save me
# some keystrokes.
{...}: {
programs.git.aliases = {
unstage = "restore --staged"; # remove file from staging area
undo = "reset --soft HEAD~"; # undo last commit
};
home.shellAliases = {
gs = "git status";
gd = "git diff --";
gl = "git log --oneline | head -n 10";
gc = "git commit";
gcp = "git commit --patch";
gf = "git commit --amend --no-edit --";
gfp = "git commit --amend --no-edit --patch --";
ga = "git add --";
gan = "git add -N";
gap = "git add --patch";
gu = "git unstage";
};
}
|