How to Switch Branches in Git
You should build a new branch and work there to avoid any downtime caused by pushing problematic code to the main branch on GitHub. You’ll have to switch to it before you can start working there. First, you’ll need to know how to create one Use the git checkout command with the -b flag and …