From 348840ce758e764b377ff5e6538621849e0306ef Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 3 Oct 2021 11:15:25 +0200 Subject: [PATCH] New git alias to restore files --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index 333ba66..0c80e46 100644 --- a/zshrc +++ b/zshrc @@ -185,6 +185,8 @@ alias ggdiff='git diff' alias ggwdiff='git diff --color-words=. --patience' ### Add changes to index alias ggadd='git add' +### Restore changes to be committed +alias ggrestore='git restore --staged' ### Remove files from the index alias ggrm='git rm' ### Move or rename file