blackode
Published in

blackode

A Git Tip on

How to toggle between current & previous branch| GIT

Code hacks will save a lot of our developing time

Icons are the property of Git

Being a developer, we used to checkout the branches to and forth very often. It kills a lot of our time.

Git provides the following command to checkout the previous branch.

git checkout @{-N} 

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store