How to Efficiently Delete a Git Branch Locally and Remotely

Steps to Delete a Local Git Branch

cd /path/to/your/project  
git branch  
git branch -d branch-name  
git branch -D branch-name  
git branch -r  
git push origin --delete branch-name  
git push origin :branch-name  
git branch -a  
Delete a Git Branch Locally and Remotely
git branch -D branch-name  
git fetch -p  
Delete a Git Branch Locally and Remotely

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

×