From 23be9c64c9934599c888e33e7b1151b9df2d7944 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 4 Dec 2021 11:23:03 +0100 Subject: [PATCH] git: Change gco to git checkout It happens too often that you want to `gco` a specific commit or tag for switch to always be useful in every scenario with the shortcut. --- git/.config/sh/alias.d/git.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git/.config/sh/alias.d/git.sh b/git/.config/sh/alias.d/git.sh index 23557cd..59ff4c3 100644 --- a/git/.config/sh/alias.d/git.sh +++ b/git/.config/sh/alias.d/git.sh @@ -24,13 +24,12 @@ if version_at_least 2.23 "$git_version"; then alias gcm='git switch master 2>/dev/null || git switch main' alias gcd='git switch develop' alias gcb='git switch -c' - alias gco='git switch' else alias gcm='git checkout master 2>/dev/null || git checkout main' alias gcd='git checkout develop' alias gcb='git checkout -b' - alias gco='git checkout' fi +alias gco='git checkout' alias gd='git diff' alias gds='git diff --staged'