error branch origin master not found

0 votes

Hi Guys,

I am trying to delete a Git branch locally and remotely. But I am getting the below error.

$ git branch -d origin/master
error: branch 'origin/master' not found.
Sep 4, 2020 in Git & GitHub by akhtar
• 38,230 points
2,878 views

1 answer to this question.

0 votes

Hi@akhtar,

It seems your branch is not synced with the remote GitHub account. That is why you are getting the above error. You can the below commands to avoid this error.

$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>
answered Sep 4, 2020 by MD
• 95,440 points

Related Questions In Git & GitHub

0 votes
1 answer

Git origin not found

For this to work, you need to ...READ MORE

answered Apr 25, 2018 in Git & GitHub by DragonLord999
• 8,450 points
1,217 views
+1 vote
1 answer
–1 vote
1 answer
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,503 views
+2 votes
1 answer
0 votes
1 answer

error on branch master nothing to commit, working directory clean, when try to commit my changes.

Hi@akhtar,  If you already have a .git/ folder ...READ MORE

answered Apr 10, 2020 in Git & GitHub by MD
• 95,440 points
17,556 views
0 votes
1 answer

error: The branch 'dev1' is not fully merged.If you are sure you want to delete it, run 'git branch -D dev1'.

Hi@akhtar, When you create one new branch in ...READ MORE

answered May 10, 2020 in Git & GitHub by MD
• 95,440 points
2,669 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP