How to toggle between current & previous branch| GIT

Blackode
Blackode
Jun 24 · 1 min read
Icons are the property of Git
git checkout @{-N} ex..git checkout @{-1}
master → develop → features
git checkout -
alias bp='git checkout -' #bp -> branch-previous alias gco-='git checkout -' #gco- -> git check out - 

blackode

Coding, thoughts, and ideas.

Blackode

Written by

Blackode

Wrong CODE takes U to the right BUG 🐞 coding, thoughts & ideas

blackode

blackode

Coding, thoughts, and ideas.