I
I
Innokenty Ivanov2019-03-25 04:44:50
git
Innokenty Ivanov, 2019-03-25 04:44:50

How to remove a bunch of extra branches in a GitHub repository?

There is an old project where I split features and fixes into separate branches according to backlogs, and then just merged them locally without a Pull Request in GitHub. Now there are a lot of branches in the repository that need to get rid of. How? Make a bunch of PR after the fact?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-03-25
@jcmvbkbc

Now there are a lot of branches in the repository that need to get rid of. How?

git push <remote> :<branch-name-1-to-delete> :<branch-name-2-to-delete> ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question