Answer the question
In order to leave comments, you need to log in
How to delete a merged branch?
I had 2 branches: master and second. I did git checkout master && git merge second
. As a result, I got this picture:
[email protected] /var/www/html/misc/tag $ git hist --all
* 4679488 2018-04-01 | 7 (HEAD -> master) [zlodiak]
* e41e917 2018-04-01 | 6 [zlodiak]
|\
| * 91d2463 2018-04-01 | 5s (second) [zlodiak]
| * 3e391bf 2018-04-01 | 4s [zlodiak]
* | 8b04f4d 2018-04-01 | 5 [zlodiak]
* | ee26071 2018-04-01 | 4 [zlodiak]
|/
* 3a0067f 2018-04-01 | 1 [zlodiak]
* d532d4a 2018-04-01 | 0 [zlodiak]
git br -D second
[email protected] /var/www/html/misc/tag $ git hist --all
* 4679488 2018-04-01 | 7 (HEAD -> master) [zlodiak]
* e41e917 2018-04-01 | 6 [zlodiak]
|\
| * 91d2463 2018-04-01 | 5s [zlodiak]
| * 3e391bf 2018-04-01 | 4s [zlodiak]
* | 8b04f4d 2018-04-01 | 5 [zlodiak]
* | ee26071 2018-04-01 | 4 [zlodiak]
|/
* 3a0067f 2018-04-01 | 1 [zlodiak]
* d532d4a 2018-04-01 | 0 [zlodiak]
Answer the question
In order to leave comments, you need to log in
As you can see, branch 91d2463, 3e391bf still exists. Please help me get rid of it.
git rebase 3a0067f
.
1. You want bad things.
2. To do this, you need to rebase commits 91d2463, 3e391bf from 3a0067f to 8b04f4d.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question