megacolorboy

Back

Published on May 25th, 2020

Git

Checkout branch

Want to create a new branch in your project? Simple, just do this:By doing this, you'll automatically be shifted to a new branch of your project. To check which branch you're working on, type this:And you should be able to see your current branch marked with a :

1 minute read

Want to create a new branch in your project? Simple, just do this:


git checkout -b new_branch

By doing this, you'll automatically be shifted to a new branch of your project. To check which branch you're working on, type this:


git branch

And you should be able to see your current branch marked with a *:


master
* new_branch