diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-14 02:18:54 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-14 02:18:54 +0530 |
commit | 5c533c95520798bec1258c7276a6a0cd02cdd096 (patch) | |
tree | 09849443712e6f8ffbd8442641c640271d90d854 /.config/shell/aliasrc | |
parent | a9b55cfcfef86f61f7ff09c55414880c9159749b (diff) |
git alias for restore and update from remote repos
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r-- | .config/shell/aliasrc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index e3b4ddf..4be0a3f 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -24,10 +24,12 @@ alias \ #git alias \ g1='git add .' \ + gr='git restore --staged' \ g2='git commit -S -m' \ g3='git push origin HEAD --force' \ gs='git status' \ gd='git diff --staged' \ + gu='git remote update && git status -uno' \ glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" #useful command line substitutions |