From 6565b441dff339479dea769927af45d279e8fd9f Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:50:08 -0400 Subject: [PATCH] bashrc: change git diff --- linux-bash/bash_aliases.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/linux-bash/bash_aliases.sh b/linux-bash/bash_aliases.sh index b5f7b4b..4c86156 100644 --- a/linux-bash/bash_aliases.sh +++ b/linux-bash/bash_aliases.sh @@ -97,10 +97,7 @@ commit() { } git() { - if [[ "$1" == "diff" ]]; then - shift - command git diff --staged "$@" - elif [[ "$1" == "remote" ]]; then + if [[ "$1" == "remote" ]]; then shift command git remote -v "$@" elif [[ "$1" == "status" ]]; then