Git Commands With Examples


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.




















Viewed 152 Times

Post On 2022-05-26