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

0 votes

Hi Guys,

I am trying to delete one of my Git branch. But it shows me the bellow error.

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

May 10, 2020 in Git & GitHub by akhtar
• 38,230 points
2,642 views

1 answer to this question.

0 votes

Hi@akhtar,

When you create one new branch in Git and commit new versions on that branch, it will create logs of that versions. Now if you try to delete that branch it will give an error. This error tells you that before delete your branch, merge your new versions with master branch. But you can delete that branch forcefully by using the bellow given command.

$ git branch -D dev1 

Hope this will help.

answered May 10, 2020 by MD
• 95,440 points

Related Questions In Git & GitHub

0 votes
1 answer

How to forcefully commit a file to Git even if the file is ruled as unchanged?

This is simple, just follow the below ...READ MORE

answered Jul 11, 2018 in Git & GitHub by Sophie may
• 10,610 points
12,402 views
–1 vote
1 answer
0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

answered Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,700 points
2,011 views
0 votes
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,460 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to delete all the Git stashes in the stack?

Hi@akhtar, If you want to delete all the ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
732 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