From 4a35fdcdcc23c77ef4bf3adc604538991ed9aeee Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 23 Nov 2023 23:07:41 +0300 Subject: [PATCH] Add git log and git pull aliases --- machines/enka/git/default.nix | 40 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/machines/enka/git/default.nix b/machines/enka/git/default.nix index b03446a..9a0affc 100644 --- a/machines/enka/git/default.nix +++ b/machines/enka/git/default.nix @@ -2,38 +2,46 @@ homeConfiguration [ "nixos" "root" ] { programs.nushell.shellAliases = { - g = "git"; + g = "git"; - ga = "git add"; - gaa = "git add ./"; + ga = "git add"; + gaa = "git add ./"; - gc = "git commit"; - gca = "git commit --amend --no-edit"; - gcm = "git commit --message"; + gc = "git commit"; + gca = "git commit --amend --no-edit"; + gcm = "git commit --message"; - gcl = "git clone"; + gcl = "git clone"; - gd = "git diff"; - gds = "git diff --staged"; + gd = "git diff"; + gds = "git diff --staged"; - gp = "git push"; - gpf = "git push --force"; + gp = "git push"; + gpf = "git push --force"; + + gl = "git log"; + glo = "git log --oneline"; + + gpl = "git pull"; + gplr = "git pull --rebase"; + gplforce = "git pull --force"; + gplff = "git pull --ff-only"; grb = "git rebase"; grba = "git rebase --abort"; grbi = "git rebase --interactive"; - grl = "git reflog"; + grl = "git reflog"; grs = "git reset"; grsh = "git reset --hard"; - gs = "git stash"; - gsp = "git stash pop"; + gs = "git stash"; + gsp = "git stash pop"; - gsh = "git show"; + gsh = "git show"; - gst = "git status"; + gst = "git status"; }; programs.git = enabled {