Skip to content
Nations Inquiry — home

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,974

012026 · 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. 1

    United States

    Northern America

    77,284,974

  2. 2

    India

    Southern Asia

    69,251,720

  3. 3

    Brazil

    South America

    19,918,250

Lowest in 2026

  1. Montserrat142
  2. Marshall Islands219
  3. Cook Islands248

This statistic has no better end: the two ends describe size, not success.

Highest on each continent

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.

All regions

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.

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.

1,00010,000100,0001,000,00010,000,000Africa54 comparedNigeria: 4,679,196Egypt: 3,336,763Kenya: 3,235,413South Africa: 1,826,066Morocco: 1,496,663Tunisia: 978,669Ghana: 736,972Ethiopia: 611,510Algeria: 610,032Uganda: 396,700Rwanda: 371,408Cameroon: 313,651Senegal: 243,084Tanzania: 230,116Côte d’Ivoire: 184,262Madagascar: 170,760Zimbabwe: 147,579Benin: 117,896Angola: 116,019DR Congo: 108,033Somalia: 105,082Zambia: 97,750Mauritius: 86,901Mozambique: 85,511Togo: 73,916Seychelles: 67,003Libya: 61,237Malawi: 51,964Burkina Faso: 45,520Sudan: 43,583Botswana: 38,815Namibia: 28,974Mali: 28,271Sierra Leone: 26,058Lesotho: 25,063Mauritania: 24,761Republic of the Congo: 23,272Gabon: 23,206Guinea: 21,969Liberia: 20,271Burundi: 17,971Niger: 15,992Gambia: 14,260Cabo Verde: 12,997South Sudan: 10,791Eswatini: 10,298Chad: 9,956Djibouti: 6,428Equatorial Guinea: 2,897Comoros: 1,836Guinea-Bissau: 1,740Eritrea: 1,466Central African Republic: 1,381São Tomé and Príncipe: 1,021São Tomé and Príncipe 1,021Nigeria 4,679,196Americas48 comparedUnited States: 77,284,974Brazil: 19,918,250Canada: 9,871,592Mexico: 4,777,192Colombia: 3,935,528Argentina: 3,598,412Peru: 1,726,117Chile: 1,485,256Ecuador: 866,721Guatemala: 479,178Venezuela: 460,235Bolivia: 453,816Costa Rica: 435,165Dominican Republic: 385,344Uruguay: 309,547El Salvador: 302,971Honduras: 189,433Paraguay: 163,202Panama: 124,124Nicaragua: 119,942Puerto Rico: 105,095Jamaica: 86,732Trinidad and Tobago: 49,008Haiti: 48,314Cuba: 44,736Barbados: 15,006Belize: 13,055Bahamas: 10,643Guyana: 9,645Cayman Islands: 7,614Suriname: 7,373Curaçao: 6,887Saint Kitts and Nevis: 5,516Bermuda: 4,708Saint Lucia: 4,602Aruba: 4,439Grenada: 4,106Antigua and Barbuda: 4,085United States Virgin Islands: 2,993Saint Vincent and the Grenadines: 2,170British Virgin Islands: 1,627Dominica: 1,572Greenland: 1,292Sint Maarten: 1,141Turks and Caicos Islands: 890Anguilla: 808Saint Martin: 508Montserrat: 142Montserrat 142United States 77,284,974Asia50 comparedIndia: 69,251,720China: 18,424,702Japan: 11,846,724Hong Kong: 10,849,015Indonesia: 10,517,820South Korea: 8,226,645Singapore: 7,263,486Vietnam: 7,017,323Pakistan: 5,148,998Bangladesh: 4,843,280Taiwan: 4,585,864Türkiye: 4,343,350Philippines: 3,767,492Thailand: 2,738,097Israel: 2,048,965Sri Lanka: 1,609,145Malaysia: 1,599,930United Arab Emirates: 1,298,564Uzbekistan: 1,254,862Nepal: 1,253,514Saudi Arabia: 1,229,146Iran: 1,142,310Kazakhstan: 944,642Georgia: 545,217Azerbaijan: 492,237Cambodia: 435,439Kyrgyzstan: 415,407Armenia: 386,734Jordan: 378,037Iraq: 376,919Myanmar: 247,843Palestine: 244,383Lebanon: 236,105Cyprus: 218,945Yemen: 192,109Qatar: 158,368Kuwait: 143,396Mongolia: 128,693Oman: 128,017Bahrain: 94,347Afghanistan: 88,059Syria: 78,402Macau: 60,647Tajikistan: 60,274Laos: 48,578Bhutan: 30,002Maldives: 28,202Brunei: 17,655Turkmenistan: 7,235Timor-Leste: 3,979Timor-Leste 3,979India 69,251,720Europe48 comparedUnited Kingdom: 11,018,799Germany: 10,506,693Russia: 9,538,404France: 8,494,768Spain: 6,144,295Netherlands: 4,796,752Poland: 4,757,525Ukraine: 4,633,088Italy: 3,301,289Sweden: 2,375,946Switzerland: 1,846,941Portugal: 1,614,258Romania: 1,538,575Belgium: 1,426,775Finland: 1,375,482Ireland: 1,314,075Czechia: 1,284,925Denmark: 1,167,132Austria: 1,145,305Norway: 1,099,064Hungary: 992,977Belarus: 980,644Bulgaria: 853,346Greece: 770,454Serbia: 711,977Lithuania: 515,191Estonia: 441,650Latvia: 431,483Croatia: 388,810Slovakia: 365,227Moldova: 286,891Slovenia: 230,010Bosnia and Herzegovina: 178,869North Macedonia: 158,783Albania: 145,290Luxembourg: 139,512Iceland: 98,021Kosovo: 85,375Malta: 81,101Montenegro: 67,841Andorra: 19,596Isle of Man: 9,895Monaco: 4,977Liechtenstein: 4,685Gibraltar: 4,579Faroe Islands: 4,081San Marino: 2,816Vatican City: 604Vatican City 604United Kingdom 11,018,799Oceania18 comparedAustralia: 4,581,556New Zealand: 943,477Papua New Guinea: 11,940New Caledonia: 8,729Fiji: 8,303French Polynesia: 7,754Guam: 5,293Northern Mariana Islands: 2,642Solomon Islands: 1,584Vanuatu: 1,103Samoa: 774Tonga: 494Palau: 470American Samoa: 416Kiribati: 409Micronesia: 364Cook Islands: 248Marshall Islands: 219Marshall Islands 219Australia 4,581,556middle country 141,454

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.

The raw table

Showing 25 of 218 countries

  1. United StatesNorthern America77,284,974
  2. IndiaSouthern Asia69,251,720
  3. BrazilSouth America19,918,250
  4. ChinaEastern Asia18,424,702
  5. JapanEastern Asia11,846,724
  6. United KingdomNorthern Europe11,018,799
  7. Hong KongEastern Asia10,849,015
  8. IndonesiaSouth-eastern Asia10,517,820
  9. GermanyWestern Europe10,506,693
  10. CanadaNorthern America9,871,592
  11. RussiaEastern Europe9,538,404
  12. FranceWestern Europe8,494,768
  13. South KoreaEastern Asia8,226,645
  14. SingaporeSouth-eastern Asia7,263,486
  15. VietnamSouth-eastern Asia7,017,323
  16. SpainSouthern Europe6,144,295
  17. PakistanSouthern Asia5,148,998
  18. BangladeshSouthern Asia4,843,280
  19. NetherlandsWestern Europe4,796,752
  20. MexicoCentral America4,777,192
  21. PolandEastern Europe4,757,525
  22. NigeriaWestern Africa4,679,196
  23. UkraineEastern Europe4,633,088
  24. TaiwanEastern Asia4,585,864
  25. AustraliaAustralia and New Zealand4,581,556

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.

200,000400,000600,000800,0001,000,0002020209 ctys2021213 ctys2022214 ctys2023215 ctys2024216 ctys2025218 ctys2026218 ctysEuropeAsiaAfricaAmericasOceania2020: middle country 38,749 of 2092021: middle country 49,690 of 2132022: middle country 65,112 of 2142023: middle country 77,855 of 2152024: middle country 98,943 of 2162025: middle country 130,588 of 2182026: middle country 141,454 of 218
  • 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
YearCountriesMiddle countryMiddle halfMeasured every time
2026218141,45411,078 – 1,131,499160,993
2025218130,58810,001 – 1,075,453152,466
202421698,9439,149 – 886,907119,955
202321577,8558,112 – 714,93591,031
202221465,1126,095 – 585,68570,794
202121349,6903,879 – 483,17256,366
202020938,7492,910 – 343,03439,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 → after
  1. India64,065,567 → 69,251,720+5,186,153
  2. United States74,046,444 → 77,284,974+3,238,530
  3. Brazil18,948,497 → 19,918,250+969,753
  4. Japan10,967,681 → 11,846,724+879,043
  5. Indonesia9,890,284 → 10,517,820+627,536

Fell most

before → after
  1. Hong Kong11,186,179 → 10,849,015−337,164
  2. Iran1,195,651 → 1,142,310−53,341
  3. Macau62,174 → 60,647−1,527
  4. Montenegro68,555 → 67,841−714
  5. 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.

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.

All statistics

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.

Digital & TechnologyWhich statistics vote, and why

Moves with

Where gitHub repositories is higher, these tend to be higher too.

Moves against

Where gitHub repositories is higher, these tend to be lower.

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.

On the same subject

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.

The full 2026 table, row for row

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

Feedback

Feedback

How are we doing?

Two answers are required — a rating and your email. The rest is up to you.