git checkout default branch instead of master

This commit is contained in:
Noah Masur 2022-05-05 10:29:15 -04:00
parent b7a75da2d3
commit 672001829d

View File

@ -35,7 +35,7 @@ function abbrs --description 'All abbreviations'
abbr -a gl 'git log --graph --decorate --oneline -20' abbr -a gl 'git log --graph --decorate --oneline -20'
abbr -a gll 'git log --graph --decorate --oneline' abbr -a gll 'git log --graph --decorate --oneline'
abbr -a gco 'git checkout' 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 gcob 'git checkout -b'
abbr -a gb 'git branch' abbr -a gb 'git branch'
abbr -a gbd 'git branch -d' abbr -a gbd 'git branch -d'