Preact: Delete stale branches

Created on 28 Dec 2019  路  3Comments  路  Source: preactjs/preact

The project has 101 branches in total and at least 60 of them are stale. Something definitely should be done about that.

question

Most helpful comment

@zdroid please don't make such wild assumptions without checking them against the numbers. I just tried it out locally with two fresh clones. One with a standard clone which downloads all branches and another which just clones the master branch. Here are the results:

| Checkout type | Repo size |
|---|---|
| All branches | 6.02 MB |
| only master | 5.16 MB |

_To get the repo size I used this command: git count-objects -vH_

To clone a single branch of a repo git has added the --single-branch flag since April 2012. It can be used like this:

git clone <url> --branch <branch> --single-branch [<folder>]

All 3 comments

We do encourage room for experimentation. I've been able to delete 10 of them, but others are ideas or experiments which may prove useful in the future. I'm not aware of any limits regarding the number of branches here on GitHub.

We have 2 main branches:

  • master is the current release line.
  • 8 is for the previous 8.x release line.

That's only the case if you'd check out all branches, most of the time you only checkout master

@zdroid please don't make such wild assumptions without checking them against the numbers. I just tried it out locally with two fresh clones. One with a standard clone which downloads all branches and another which just clones the master branch. Here are the results:

| Checkout type | Repo size |
|---|---|
| All branches | 6.02 MB |
| only master | 5.16 MB |

_To get the repo size I used this command: git count-objects -vH_

To clone a single branch of a repo git has added the --single-branch flag since April 2012. It can be used like this:

git clone <url> --branch <branch> --single-branch [<folder>]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewmueller picture matthewmueller  路  3Comments

skaraman picture skaraman  路  3Comments

KnisterPeter picture KnisterPeter  路  3Comments

mizchi picture mizchi  路  3Comments

matuscongrady picture matuscongrady  路  3Comments