The project has 101 branches in total and at least 60 of them are stale. Something definitely should be done about that.
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>]
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
masterbranch. 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-branchflag since April 2012. It can be used like this: