Skip to main content

Command Palette

Search for a command to run...

Create Branch By Command Github

Updated
1 min readView as Markdown
Create Branch By Command Github
L

I've got accomplished web development with expertise in various programming languages including PHP, Laravel, C#, and C++. My curiosity to learn more and my passion for coding drives me to constantly enhance my skills and create exceptional digital experiences.

Command - Create a branch

  • $git checkout -b "Name"

  • $git add .

  • $git commit -m"Messag3"

  • $git push origin BranchName

Explaining Above commands

Checkout -b will create a branch then add all the files and commit a message then you can push it to a branch

Check the Branch you are currently on

$git branch

As per our previous Blog, I've assisted you in pushing your work to a GitHub repository, specifically on a branch named 'branch2' while currently staying on 'branch1'


Thank you