Here's how to delete a branch both locally and remotely:
Step-by-Step Deletion
Step 1: Switch to a Different Branch First
You can't delete a branch you're currently on:
# Switch to dev or main
git switch dev
Step 2: Delete Local Branch
# Delete local branch (safe delete - prevents deletion if unmerged)
git branch -d feat/-deployment
# OR force delete (if you get warnings about unmerged changes)
git branch -D feat/-deployment
Step 3: Delete Remote Branch
# Delete remote branch
git push origin --delete feat/-deployment
No hay comentarios:
Publicar un comentario