Git Commands With Examples

  Last Update - 2022-01-19


Creating a New Branch

git branch <branch_name>

Create a new branch called <branch>. This does not check out the new branch.

git branch -d <branch_name>

List all of the branches in your repository. This is synonymous with git branch --list.




Brijesh Patel

Share on Facebook Twitter LinkedIn