What does delete branch operation does ?

Ar Sa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2024

 

What does delete branch operation does ?

 

Does it delete the branch from source tree or bitbucket(github server) ?

1 answer

1 vote
Kuğbe
Contributor
July 4, 2024

Deleting a Branch Locally:

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).

Deleting a Branch Remotely:

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events