[Git] Delete branch at local and remote

We have 2 branch master and develop, and we want to delete branch develop at local and remote.

  • First, we must checkout to branch master
git checkout master
  • Next, delete branch at local
git branch -D develop
  • Next, delete branch at remote server
git push origin --delete develop
Advertisements