GitHub · GitHub Repositories
GitHub repositories by country
How many public GitHub repositories are based in each country?
Of the 218 countries compared in 2026, United States had the highest reading, 77,284,974, and Montserrat had the lowest reading, 142. In the middle country the figure was 141,454. Among the 208 countries measured in every edition since 2020, the middle one moved from 39,598 to 160,993.
Part ofDigital & Technology
GitHub repositories · 2026
Context statistic
Highest of 218United States
77,284,974012026 · values only
The highest and the lowest
The three countries with the highest values of 218 compared, the three with the lowest, and the highest on each continent. This statistic has no better end, so no country is shown as leading.
- 1
- 2
- 3
Lowest in 2026
This statistic has no better end: the two ends describe size, not success.
Highest on each continent
- Africa
Nigeria4,679,196
- Americas
United States77,284,974
- Asia
India69,251,720
- Europe
United Kingdom11,018,799
- Oceania
Australia4,581,556
- Every region
02Every measured country
GitHub repositories on a map
Each country is shaded by its value, in five groups holding the same number of countries. Hover a country for its value, or select it to open its profile. Below the map, each continent’s middle country.
Darker is a higher value. This statistic has no better end, so the shades describe size, not success.
- 142–7,235
- 7,373–67,841
- 73,916–365,227
- 371,408–1,485,256
- 1,496,663–77,284,974
- No reading in 2026
- Europe
741,216
the middle country, of 48 measured · 49 members
United Kingdom11,018,799
Vatican City604
Highest and lowest reading in Europe.
- Asia
463,838
the middle country, of 50 measured · 52 members
India69,251,720
Timor-Leste3,979
Highest and lowest reading in Asia.
- Africa
56,601
the middle country, of 54 measured · 55 members
Nigeria4,679,196
São Tomé and Príncipe1,021
Highest and lowest reading in Africa.
- Americas
46,525
the middle country, of 48 measured · 48 members
United States77,284,974
Montserrat142
Highest and lowest reading in Americas.
- Oceania
1,344
the middle country, of 18 measured · 21 members
Australia4,581,556
Marshall Islands219
Highest and lowest reading in Oceania.
- Every region
22 sub-regions, highest middle country first
- Eastern Asia
8,226,645
the middle country, of 7 measured · 8 members
China18,424,702
Macau60,647
Highest and lowest reading in Eastern Asia.
- South-eastern Asia
1,599,930
the middle country, of 11 measured · 11 members
Indonesia10,517,820
Timor-Leste3,979
Highest and lowest reading in South-eastern Asia.
- Western Europe
1,426,775
the middle country, of 9 measured · 9 members
Germany10,506,693
Liechtenstein4,685
Highest and lowest reading in Western Europe.
- Southern Asia
1,253,514
the middle country, of 9 measured · 9 members
India69,251,720
Maldives28,202
Highest and lowest reading in Southern Asia.
- Eastern Europe
1,138,951
the middle country, of 10 measured · 10 members
Russia9,538,404
Moldova286,891
Highest and lowest reading in Eastern Europe.
- Northern Europe
807,128
the middle country, of 12 measured · 13 members
United Kingdom11,018,799
Faroe Islands4,081
Highest and lowest reading in Northern Europe.
- Northern Africa
794,351
the middle country, of 6 measured · 6 members
Egypt3,336,763
Sudan43,583
Highest and lowest reading in Northern Africa.
- South America
663,478
the middle country, of 12 measured · 12 members
Brazil19,918,250
Suriname7,373
Highest and lowest reading in South America.
- Central Asia
415,407
the middle country, of 5 measured · 5 members
Uzbekistan1,254,862
Turkmenistan7,235
Highest and lowest reading in Central Asia.
- Western Asia
310,651
the middle country, of 18 measured · 19 members
Türkiye4,343,350
Syria78,402
Highest and lowest reading in Western Asia.
- Central America
246,202
the middle country, of 8 measured · 8 members
Mexico4,777,192
Belize13,055
Highest and lowest reading in Central America.
- Southern Europe
158,783
the middle country, of 17 measured · 17 members
Spain6,144,295
Vatican City604
Highest and lowest reading in Southern Europe.
- Eastern Africa
92,326
the middle country, of 18 measured · 19 members
Kenya3,235,413
Eritrea1,466
Highest and lowest reading in Eastern Africa.
- Southern Africa
28,974
the middle country, of 5 measured · 5 members
South Africa1,826,066
Eswatini10,298
Highest and lowest reading in Southern Africa.
- Western Africa
27,165
the middle country, of 16 measured · 16 members
Nigeria4,679,196
Guinea-Bissau1,740
Highest and lowest reading in Western Africa.
- Middle Africa
23,206
the middle country, of 9 measured · 9 members
Cameroon313,651
São Tomé and Príncipe1,021
Highest and lowest reading in Middle Africa.
- Melanesia
8,303
the middle country, of 5 measured · 5 members
Papua New Guinea11,940
Vanuatu1,103
Highest and lowest reading in Melanesia.
- Caribbean
4,521
the middle country, of 24 measured · 24 members
Dominican Republic385,344
Montserrat142
Highest and lowest reading in Caribbean.
- Polynesia
494
the middle country, of 5 measured · 7 members
French Polynesia7,754
Cook Islands248
Highest and lowest reading in Polynesia.
- Micronesia
440
the middle country, of 6 measured · 7 members
Guam5,293
Marshall Islands219
Highest and lowest reading in Micronesia.
- Australia and New Zealand
2 of 2 measured — too few for a middle: Australia, New Zealand.
Australia4,581,556
New Zealand943,477
Highest and lowest reading in Australia and New Zealand.
- Northern America
4 of 4 measured — too few for a middle: Bermuda, Canada, Greenland, United States.
United States77,284,974
Greenland1,292
Highest and lowest reading in Northern America.
03The whole field at once
The spread
218 countries, one dot each, on one scale — further right is a higher value. Half the countries are above 141,454; a quarter are above 1,131,499, and a quarter below 11,078. The bar in each row marks that continent’s middle country.
Log scale: each gridline is ten times the one before, so countries of very different sizes can be seen on one line.
04All 218 ever measured
Every country
In order, highest value first. No rank or position is shown: too many countries share the same value for an order to mean anything. Neither end is better. A count, not a rate: large and well-connected countries lead. Only public repositories are counted — private company code, which is most of the world's software, is invisible here.
Showing 25 of 218 countries
Values for 2026. The change column compares 2026 with 2025 only; the sparkline covers the recent editions.
052020–2026 · 7 editions
Over time
Each point is the last quarter GitHub published in that year, counted as of the quarter's final day. Old and abandoned repositories stay in the count, so it measures an accumulated stock rather than current activity.
- the middle country
- the middle half of countries
- the middle of the 208 countries measured every time
- each continent’s middle country
The same, year by year
| Year | Countries | Middle country | Middle half | Measured every time |
|---|---|---|---|---|
| 2026 | 218 | 141,454 | 11,078 – 1,131,499 | 160,993 |
| 2025 | 218 | 130,588 | 10,001 – 1,075,453 | 152,466 |
| 2024 | 216 | 98,943 | 9,149 – 886,907 | 119,955 |
| 2023 | 215 | 77,855 | 8,112 – 714,935 | 91,031 |
| 2022 | 214 | 65,112 | 6,095 – 585,685 | 70,794 |
| 2021 | 213 | 49,690 | 3,879 – 483,172 | 56,366 |
| 2020 | 209 | 38,749 | 2,910 – 343,034 | 39,598 |
062025 → 2026
Who rose and fell
The biggest changes in value between the two newest editions. Places are shown second, because they also move when other countries do.
Rose most
before → afterIndia64,065,567 → 69,251,720+5,186,153
United States74,046,444 → 77,284,974+3,238,530
Brazil18,948,497 → 19,918,250+969,753
Japan10,967,681 → 11,846,724+879,043
Indonesia9,890,284 → 10,517,820+627,536
Fell most
before → afterHong Kong11,186,179 → 10,849,015−337,164
Iran1,195,651 → 1,142,310−53,341
Macau62,174 → 60,647−1,527
Montenegro68,555 → 67,841−714
Mauritius87,579 → 86,901−678
218 countries were measured in both 2025 and 2026.
07Across every edition
GitHub repositories in records
The extremes of the statistic. A record reached by more than one country names none of them.
Highest reading on record
77,284,974
Public repositories located in the economy (as of quarter end)
Lowest reading on record
106
Public repositories located in the economy (as of quarter end)
Biggest rise between editions
+15,650,595
48,414,972 → 64,065,567
Biggest fall between editions
−1,995,727
22,678,026 → 20,682,299
Biggest change since first measured
+56,053,470
13,198,250 → 69,251,720
Highest most often
7 of 7
editions, alone at the first-listed end
08The measure
About gitHub repositories
How many public software projects on GitHub are based in each country, placed by where the people who run them are. GitHub publishes it quarterly in its Innovation Graph.
What the number is: Public repositories located in the economy (as of quarter end).
09Where it fits
Connections
Its part in the Country Index, the statistics whose values line up most closely with it across countries, and others on the same subject.
In the Country Index
Context, with no vote
This statistic is published in full under Digital & Technology, but does not help decide any Country Index standing.
Moves with
Where gitHub repositories is higher, these tend to be higher too.
- GitHub Git PushesGitHub · 186 countries in commonρ 0.99
- GitHub DevelopersGitHub · 218 countries in commonρ 0.99
- Scholarly ArticlesOurResearch · 215 countries in commonρ 0.95
Moves against
Where gitHub repositories is higher, these tend to be lower.
- Outbound Mobility Ratio, TertiaryUIS · 117 countries in commonρ −0.66
- Net Official Development Assistance ReceivedOECD Development Assistance Committee · 128 countries in commonρ −0.62
- Climate Vulnerability (ND-GAIN)KeyNotre Dame Global Adaptation Initiative (ND-GAIN), University of Notre Dame · 187 countries in commonρ −0.57
Rank correlation (ρ, from −1 to 1) across countries, on each statistic’s newest edition, out of 314 statistics sharing at least 80 countries with this one. Two statistics that move together do not cause each other.
10Keep reading
Explore further
The subject
The countries at either end
More from GitHub
11Questions
GitHub repositories: questions and answers
Which country has the highest gitHub repositories?
United States, at 77,284,974, among the 218 countries compared in 2026.
Which country has the lowest gitHub repositories?
Montserrat, at 142, among the 218 countries compared in 2026.
How many countries does the GitHub Repositories cover?
218 in 2026. The number measured varies from 209 to 218 between editions.
What is the world average gitHub repositories?
This site does not calculate a world average, which would depend on how countries are weighted. In the middle country of the 218 compared in 2026, the figure was 141,454.
Is this GitHub’s own ranking?
No ranking is shown. GitHub publishes values only, and too many countries share the same value for an ordering to mean anything, so none is derived.
How often is the GitHub Repositories published?
This site holds 7 editions, describing 2020 to 2026.
Where does the data come from, and can I download it?
From GitHub, under CC0 1.0. From the data files in GitHub's own Innovation Graph repository, stored as published, with the same places left out as for GitHub developers. Every edition is on this site’s Datasets pages as a full table, and downloads as a CSV file with every value unrounded.
12Method
Sources, method and citation
Source
GitHub Repositories — GitHub
From the data files in GitHub's own Innovation Graph repository, stored as published, with the same places left out as for GitHub developers.
Newest edition
Report year 2026Data year 2026
Cite the source as: GitHub. (2026). GitHub Innovation Graph (Version 1.0.11) [Data set]. https://github.com/github/innovationgraph
Licence: CC0 1.0, checked 2026-09-29.
How this page reads the numbers
- No rank or position is shown: GitHub publishes values only, and too many countries share the same value for an ordering to mean anything.
- This statistic has no better end, so the page describes higher and lower values and never calls a country a leader.
- A country is named at an end only when it holds that value alone. Where several share it, the page says how many and names none first.
- Values are stored exactly as published and trimmed only for display. “The middle country” is the median of the countries measured, not a world average.
The file itself, column by column — where it came from, what each column holds, and every edition as a CSV — is on its dataset page.
Cite this page
Nations Inquiry (2026). GitHub repositories by country: GitHub Repositories, data from GitHub. https://nationsinquiry.com/statistics/github-repositories