I have a repo in a very small environment with a short amount of memory, so every byte counts. I just finished developing, so I want to remove the dev branch. Now, my repo is structured like this:
(master) A---------E
(dev) \-B-C-D-/
I've already tried git branch -d dev
, but it ends up deleting dev keeping all the commits, like this:
(master) A---------E
\-B-C-D-/
Is there a way to keep only the master branch? Like
(master) A---------E
Thanks.