how to delete a push to the main branch on Github\ code example Example: remove branch local git $ git branch -d branch_name $ git branch -D branch_name