The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events