[Git] – How to remove the remote and local branch by commands line?

The following is the command to remove the remote branch

$ git push origin –delete <branch_name>

The following is the command to remove the local branch

$ git branch -D <branch_name>

 

Leave a comment