Articles → GIT → Branches In GIT
Branches In GIT
What Are Branches?
How To Get The List Of All Branches?
git branch –a
Or
git branch
Click to Enlarge
Master Branch
How To Create A New Branch?
Click to Enlarge
How To Switch Between Branches?
git checkout <branch_name>
Click to Enlarge
How To Delete A Branch?
git branch –D <branch_name>
Click to Enlarge
Create And Check-In The Branch In One Command
git checkout –b <branch_name>
Click to Enlarge
How To Rename A Branch?
git branch –m <new branch name>
git branch –m <old branch name> <new branch name>