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 in Git & GitHub by akhtar
• 14,030 points
60 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 by MD
• 31,430 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
• 9,940 points
225 views
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,380 points
220 views
0 votes
1 answer
+1 vote
5 answers

ERROR: 'git' is not recognized as an internal or external command.

You need to make sure git.exe is ...READ MORE

answered May 7, 2019 in Git & GitHub by Yesha
10,137 views
+13 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,420 points
533 views
0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers