How to delete a Git branch remotely

0 votes

Hi Team,

I have some remote branch in Git. I want to delete the branch. How can I do that?

Nov 21, 2020 in Git & GitHub by akhtar
• 38,180 points
116 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete the branch locally or remotely. In most cases, the remote name is the origin. In such a case you'll have to use the command given below.

$ git push -d origin <branch_name>
answered Nov 21, 2020 by MD
• 95,240 points

Related Questions In Git & GitHub

0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,890 points
984 views
+1 vote
2 answers

Delete a git branch locally and remotely

Deleting a remote branch: git push origin --delete ...READ MORE

answered Aug 20, 2018 in Git & GitHub by Nilesh
• 7,020 points
2,227 views
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

answered Sep 4, 2020 in Git & GitHub by akhtar
• 38,180 points
236 views
0 votes
1 answer

How to clone a specific Git branch?

Hi@akhtar, You need to specify the branch name ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,240 points
195 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,189 views
+2 votes
1 answer
+1 vote
1 answer

How to check out a remote Git branch?

Hi@akhtar, You can use the git checkout command ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,240 points
79 views
0 votes
1 answer

How to move the most recent commits to a new branch with Git?

Hi@akhtar, If you want to move your commits ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,240 points
98 views