From 672001829d78c797bc82120b66cc279100458083 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 5 May 2022 10:29:15 -0400 Subject: [PATCH] git checkout default branch instead of master --- fish.configlink/functions/abbrs.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish.configlink/functions/abbrs.fish b/fish.configlink/functions/abbrs.fish index 1dc7f97..b77cc39 100644 --- a/fish.configlink/functions/abbrs.fish +++ b/fish.configlink/functions/abbrs.fish @@ -35,7 +35,7 @@ function abbrs --description 'All abbreviations' abbr -a gl 'git log --graph --decorate --oneline -20' abbr -a gll 'git log --graph --decorate --oneline' abbr -a gco 'git checkout' - abbr -a gcom 'git checkout master' + abbr -a gcom 'git checkout (git symbolic-ref refs/remotes/origin/HEAD | cut -d"/" -f4)' abbr -a gcob 'git checkout -b' abbr -a gb 'git branch' abbr -a gbd 'git branch -d'