Skip to content

Commit 71abec4

Browse files
committed
fix(git): use the correct alias section name && add unstage alias
1 parent 2aa6ad3 commit 71abec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

home/git.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
name = dotfiles.fullname;
3333
email = dotfiles.email;
3434
};
35-
aliases = {
35+
alias = {
3636
undo = "reset HEAD@{1}";
3737
lg = "log --pretty=format:'%C(red)%h %C(blue)<%an> %C(green)%cs (%cr) %C(reset)%s %C(auto)%d' --abbrev-commit --graph";
3838
pushf = "push --force-with-lease";
3939
review = /* bash */ ''!f() { nvim +"DiffviewFileHistory --range=''${1:-master}.."; }; f'';
40+
unstage = "reset HEAD --";
4041
};
4142
init.defaultBranch = "master";
4243
core = {

0 commit comments

Comments
 (0)