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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.