Monthly Archives: August 2017

How to Delete a Git branch both locally and on remote?

To delete local branch : $ git branch -d branch_name To delete local branch Forcefully : $ git branch -D branch_name Here -D is an alias for – -delete – -force, which deletes the branch irrespective of its merged status. To delete remote branch : $ git push origin –delete… Read more »