What does delete branch operation does ?
Does it delete the branch from source tree or bitbucket(github server) ?
Using <strong>[git branch -d branch_name]</strong> removes the branch only from your local repository. It still exists on the remote server (e.g., Bitbucket, GitHub).
<strong>[git branch -d branch_name]</strong>
Using <strong>[git push origin --delete branch_name]</strong> removes the branch from the remote server. It remains in your local repository until you delete it locally.
<strong>[git push origin --delete branch_name]</strong>
- To fully delete a branch, you need to remove it both locally and remotely with the respective commands.
It looks like you're new here. Sign in or register to get started.