Ask Question

How do I delete a Git branch locally and remotely?

What is the best way to delete a branch both locally and remotely?

Git

1617 views

Authorยดs frank image

frank

โค๏ธ
1
Last edited on

1 Answer available

Best answer

You can delete a remote branch using the following command:

$ git push <remote_name> --delete <branch_name>
๐ŸŽ‰
3
โค๏ธ
1