How to make new git branch from terminal (git checkout…)🧑‍💻

Kiki AI
Jan 6, 2021

--

THANKS 👏: I appreciate the many claps most my readers leave because it takes me a long time to write these free articles.

It’s one of the simple things that’s always hard to remember. Here’s how to make a local git branch:

1.) Go to your terminal/console app 💻

2.) Create a new local branch 🌳

Type the following command into terminal to create a new branch:

git checkout -b NameOfYourNewBranch

This should create a new git branch with your desired name and change to that branch.

3.) Check it was created properly ✅

Type the following command into terminal to check it was created correctly:

git status

This should now show your new branch created correctly and in green.

Thanks for reading! Please leave a clap like my other readers if this helped 😊

--

--

Kiki AI
Kiki AI

Written by Kiki AI

26K+ Reads ✍🏼 Passionate about tech, AI and impact 👌 Views are all my own.

No responses yet