What does delete branch operation does ?
Does it delete the branch from source tree or bitbucket(github server) ?
Using [git branch -d branch_name]
removes the branch only from your local repository. It still exists on the remote server (e.g., Bitbucket, GitHub).
Using [git push origin --delete branch_name]
removes the branch from the remote server. It remains in your local repository until you delete it locally.
- To fully delete a branch, you need to remove it both locally and remotely with the respective commands.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.