Monday, August 17, 2020

List git local branch and delete

The command to list local branch on git is 

$ git branch

The command to delete local branch on git is

$ git branch -d <branch_name>

For remote branch deletion

$ git push <remote> ---delete <branch_name>
 


No comments: