ColaLinN / coding-tricks-collection

Record some minor tricks that I found in daily coding
0 stars 0 forks source link

[06] [GIT] Switch to the a specifc branch in one line #6

Open ColaLinN opened 8 months ago

ColaLinN commented 8 months ago

gco $(gb | grep )

gco == git checkout gb == git branch

ColaLinN commented 7 months ago

also, this can be extended to other scenarios. For example: git merge $(git branch | grep key_word)