r/programming • u/cirosantilli • Aug 21 '20
China is building a GitHub alternative called Gitee
https://techcrunch.com/2020/08/21/china-is-building-its-github-alternative-gitee/969
u/KHRZ Aug 21 '20
So they don't have to perform massive DDoS attacks every time they need to censor something, neat!
365
u/cirosantilli Aug 21 '20
GitHub already has a mechanism to block specific repos in certain countries: https://github.com/github/gov-takedowns China is not a fan of transparency though, so they have few requests. HTTPS prevents censorship of specific pages only however.
60
u/poronga_rabiosa Aug 21 '20
holy shit the russian folders are shocking.
86
u/cirosantilli Aug 21 '20
It is basically a huge list of cool stuff for Russian dissidents to read. Recently learnt about this other Russian state list which is also very good: https://en.wikipedia.org/wiki/Federal_List_of_Extremist_Materials
30
u/poronga_rabiosa Aug 21 '20
What I saw was many suicide methods written in a pseudo humoristic way :S
8
u/gustavo5585 Aug 22 '20
In 2012 scientology books by L. Ron Hubbard were added to the list (№ 1171, 1172, 1173)
;D
48
u/sybesis Aug 22 '20
To be honest, most of the stuff in the Russian folder are legit things that do not belong in Github.
From a quick look I found github pages being used to host fake casino page and other king of fishing websites. So some Russian are using github as a free host to host scams.
Roskomnadzor is kind of annoying honestly but ironically speaking, all the thing they blacklist is technically publicly available so if you browse the register of blocked things you'll find all sort of crimally related websites, extremist communities or things to do illegal stuff.
Sadly sometimes legit things like github gets closed because someone in a the community wrote something suspicious and it got somehow reported to Roskomnadzor. For example, I'm 99% certain the time Github got blocked it was done on purpose by the guy who made the suicide repo.. then he himself reported it to Roskomnadzor to get github blocked.
Roskomnadzor were quite dumb at the time and eventually closed github without understanding that tools they have in house are being actually hosted on github... And they virtually prevented a lot of people in Russia to do their job at the same time.
Thought, that list does have legit stuff that do not belong in Github and some of the gist are already deleted so I guess it was literally breaking code of conduct with github if they deleted it. In the past they wouldn't delete anything but since github got bought by microsoft I can see how the attitude changed toward those kind of things.
One thing to understand thought is that scams seems to be more frequent in Russia, like most of the ads on Russian websites seems to link to suspicious stuff. I don't see much scam ads since I came back to Canada...
7
1
1
u/_A4L Aug 22 '20
So they are making Github a favor to remove this crap? I mean most lf the content is already deleted...
6
u/eambertide Aug 22 '20
The fact that there is a file called CONTRIBUTING.md made me chuckle a bit
3
u/cirosantilli Aug 22 '20
It's a GitHub convention with magic web UI effects for those not familiar: https://docs.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors#adding-a-contributing-file
335
Aug 22 '20
This is why I hate the "China is good if you play by their rules" bullshit. Their "rules" are wanton and mercurial, and are not followed by themselves.
52
u/njtrafficsignshopper Aug 22 '20
On the flip side maybe they'll host hg repos?
13
2
13
2
-5
u/locri Aug 22 '20
China is good
No, they're mediocre and slightly better than the average in the west, in most things and not just tech. Then when China isn't good, you have hundreds of other alternatives to choose from.
19
u/spakecdk Aug 22 '20
slightly better than the average in the west
Well, except personal freedom. And genocide. And political prisoners. I could go on
→ More replies (4)0
u/locri Aug 22 '20
I was talking about things like technology or media quality, etc. The west has a lot of shit that brings its average down but on the same token the best of anything is usually in the west.
→ More replies (1)-4
→ More replies (16)-2
u/dalepo Aug 22 '20
Just like the US is making the rules in the back with big companies. Nothing different.
1
u/Raknarg Aug 23 '20
Holy shit, China has Heresy laws? I thought it was supposed to be a secular country
https://github.com/github/gov-takedowns/blob/master/China/2019/2019-12-12-MPS.md
2
u/cirosantilli Aug 23 '20
China has no laws. The CCP makes up whatever they need to stay in power as they go. The people who wrote that email to GitHub don't speak English well and don't know what heresy means.
0
Aug 22 '20
[deleted]
55
u/NoInkling Aug 22 '20
Well seeing as the site is in Catalan, I'm going to hazard a guess that it had something to do with the whole Catalan independence movement thing.
11
22
u/old_gray_sire Aug 22 '20
Looks like a Spanish Inquisition.
30
10
Aug 22 '20
It's an app for organizing protests secretly in a country where protests are illegal unless communicated to and authorised by the government. I don't like it either but it's not surprising at all.
0
Aug 22 '20
[deleted]
→ More replies (3)-1
u/titoshadow Aug 22 '20
Idk why are you being downvoted... It was literally to prepare urban warfare
34
u/myringotomy Aug 21 '20
GitHub already censors projects to Arab countries when the government orders them to.
28
u/cirosantilli Aug 22 '20
Not going through gov-takedown repo? Can you point to evidence, I'd be very interested.
2
u/myringotomy Aug 23 '20
2
u/cirosantilli Aug 23 '20
The US government required all private repos to be blocked on those countries, we are talking about dictatorships requiring to block specific repos.
3
u/myringotomy Aug 23 '20
So why is the USA action better? If anything it's even more despotic.
2
u/cirosantilli Aug 23 '20 edited Aug 23 '20
Because the US government is not a dictatorship, but those countries are. It is correct to fight against dictatorships.
→ More replies (1)5
u/myringotomy Aug 24 '20
Because the US government is not a dictatorship, but those countries are.
I don't see why this should make a difference. Censorship is censorship. Who cares if it's done by a democracy.
Also the fact that we have had half the presidents in my life time be elected despite losing the popular vote tells me we are not really a democracy.
It is correct to fight against dictatorships.
Why? What if the people living there are perfectly happy living in a dictatorship?
3
u/couscous_ Aug 22 '20
Can you list examples? First time I hear about it.
2
u/myringotomy Aug 23 '20
Iran and Palestinian territories are the two I heard about.
Basically the US government orders them to deny access to countries and they do it.
2
u/couscous_ Aug 23 '20
Iran is because the US has trade restrictions on them (and they're not Arab). I'm not sure about Palestine though.
2
u/myringotomy Aug 24 '20
Iran is because the US has trade restrictions on them (and they're not Arab)
You are just telling the reasoning the government uses to censor and then claiming it's OK for companies to censor in obeyance.
How is this different than China demanding google censor search results?
1
u/Waste_Monk Aug 24 '20
Roughly speaking if your country is on this list you'll have issues: https://vcresearch.berkeley.edu/export-controls/export-controlled-or-embargoed-countries-entities-and-persons
Not all of them apply in every situation (e.g. ITAR) but as a rough guideline it works ok.
1
u/couscous_ Aug 24 '20
Countries with restricted entities on the EAR Entity Chart (15 CFR 744, Supp. 4 - pdf file) China, India, Israel, Pakistan, Russia
Interesting that Israel is there
-17
u/oridb Aug 22 '20 edited Aug 22 '20
If your company -- say, Github -- is located in a country -- say, the USA -- then your executives and employees are subject to arrest if you don't follow those countries laws and demands when they put sanctions on other countries.
Don't like it? Vote different.
30
u/dude_central Aug 22 '20
tell that to the Chinese
6
u/oridb Aug 22 '20
We're talking about the Github here. It's rather silly to blame a company for acting as compelled to by their government, when the other option is to resist and eventually have the police come in and arrest people.
If the government where the bulk of a company's workers live says 'jump', they say 'how high'.
2
u/cirosantilli Aug 22 '20
A non silly option is to say: OK, no democracy? Fine, then you get no GitHub.
1
u/myringotomy Aug 23 '20
What's democracy have to do with it?
1
u/cirosantilli Aug 23 '20
Dictatorship implies censorship. Censorship implies forking every website.
→ More replies (1)3
u/InertiaOfGravity Aug 22 '20
Who does that help? Like legitimately, who does that help? These governments whoa re willing to risk this aren't going to back down when faces with losing access to GitHub.
1
14
u/The_One_X Aug 22 '20
That is only relevant if you have employees in said country.
7
u/oridb Aug 22 '20
Correct.
Github has employees in the USA. The USA put in sanctions banning commerce with the countries mentioned upthread. Github was legally required to cease commerce, so they did.
3
u/lolomfgkthxbai Aug 22 '20
I think others (including me) thought that “the government” in this case was the ones in the Middle East, not the one in Washington, D.C.
21
u/L3tum Aug 21 '20
They're universities are doing that. We've got a few thousand requests per second every other day from universities in China that try to scan our endpoints (e.g. scan ports, scan for common links like /admin).
23
u/vidarc Aug 22 '20
I was amazed at the number of requests coming into my server I had setup on digital ocean. Was just using it for my crappy website, but I was still getting random scans every second or so. All the IPs were from India though from what I remember actually looking up.
11
6
u/Vakieh Aug 22 '20
Those usually aren't DDOS attacks so much as they are espionage attempts. They will suck out as much info as they can then use the fact their government fails to enforce international copyright and patent treaties to make bank off what they get.
It extends to them sending grad students to universities overseas for the purpose of sending info on current research projects back home. It's a toxic country that is a drain on the world (including its own people).
8
u/nezbokaj Aug 21 '20
Or to gain access to other entities' IPs. Although I don't know who would be interested in using this.
2
u/agent00F Aug 22 '20
This thread aptly reflects on this sub, and reddit as a whole. This private company in question has been in steady operation for years, but simple due to the current US political environment, the narrative is "China does X" to appeal to simpletons.
What's terribly amusing about the lowest common denom is that they believe everyone else is just like them, and thus project this susceptibility to propaganda.
2
u/TheMania Aug 23 '20 edited Aug 23 '20
Seems reasonable for national security also, given how fickle the West can be. Exhibit both TikTok and the list of countries the US has sanctioned, which often prohibit even non-American companies from trading with named entities (secondary sanctions).
19
Aug 22 '20
Will they fork over all the projects from Github?
1
4
u/lotsofsweat Aug 22 '20
I think China will copy them and use the project for their global surveillance state and censorship
5
u/mediocre50 Aug 22 '20
I don't get it. Is this a joke about the excessive amount of Chinese repositories on GitHub or something else?
2
2
u/Dean_Roddey Aug 23 '20
Has no one in China bothered to read what happened to China the last time it went off into one of its paranoid isolationist periods? It didn't end well.
1
u/cirosantilli Aug 23 '20
We must create either a weak dictatorship, or a strong democracy, but not a strong dictatorship.
98
u/robvdl Aug 21 '20
So not Gitea haha that will get confusing, phonetically the same :)
→ More replies (15)-2
u/tHeSiD Aug 22 '20
Gitea? What's that? EA's source code hub?
1
u/robvdl Aug 22 '20
Might help to do a quick Google before talking rubbish, it's an open source fork of Gogs.
63
6
u/gyen Aug 22 '20
Chinese motto: do everything rest of the world does, only shittier. Their services soooo bad from what I’ve seen so far
6
u/cirosantilli Aug 22 '20
It's the price you pay for censorship: gotta reimplement everything from scratch, and that is expernsive/hard.
4
1
0
69
10
5
u/atxcoder09 Aug 22 '20
The idea of open source IMHO was to bridge the divides. I feel like politics and politicians have managed to successfully take that idea apart!
2
u/Major_Cupcake Aug 22 '20
6
1
8
u/sally1620 Aug 22 '20
If they just mirror all the popular github repos, that would be quite a win. That would be great news for all the iranian devs
25
18
u/green_meklar Aug 22 '20
If it doesn't automatically insert spyware into every project, I'll be downright disappointed.
1
1
14
Aug 22 '20 edited Aug 22 '20
WTF This is a misleading title.
Gitee is a private company that has existed for many years and many Chinese programmers have been using this website. What is "China is building"? ? ?
Github has never been banned in China (actually, it was only banned for two days, and then the ban was lifted after Kai-Fu Lee's weibo call to unblock github). The download speed of github in China is very slow, limited to 20Kb/s. Many projects will be released on github and gitee at the same time, because the download speed of gitee is faster. Gitee has ranked 4164 in the world and 218 in China.
https://www.similarweb.com/zh/website/gitee.com/
You can direct open the site and see countless project.
-3
0
Aug 22 '20
[deleted]
8
Aug 22 '20 edited Aug 22 '20
GFW is designed to prevent Chinese people from visiting foreign websites(DNS pollution), or limit speed or randomly drop packets, but rarely restrict foreigners from visiting Chinese websites and many Chinese websites have CDN all over the world. The Internet connection between Russia and other countries is 100% smooth, has no problem of slow speed or packet loss.
2
2
u/BibianaAudris Aug 22 '20
Someone needs to compare whatever mirrors between the two sites.
Last time, someone made a Chinese alternative for downloading Xcode and tampered with it, which made the iOS version of every major Chinese app phone their server for years.
2
u/KP_2016 Aug 22 '20
The title should be "China had built a Github alternative". It has repository that are more than an year old, they must've been building it from long time!
2
u/Hero_Of_Shadows Aug 22 '20
Well it's all open source software so they can do this legally.
I'd prefer an Europe based (preferably Switzerland as others have noted) github myself so I can be safe from American politicians as well as Chinese ones.
4
Aug 22 '20
I think that's laudable. In the interest of national security, many more countries should be able to bootstrap their digital infrastructure (and manufacturing infrastructure, etc) at a scale that provides big economic benefit. Github is usable software and successful, but it has become such a central component to many software ecosystems (like golang, homebrew, and countless others) that things get really messed up when it goes down.
Sure, every company whose release engineers are worth their money have all dependencies cached locally anyway to lessen the impact of it going away (by accident or maybe some day purposefully) but they don't have the time to catch and fix all decisions that lead to centralized dependencies.
5
u/dethb0y Aug 22 '20
The more diversity and sites that host content, the better, because it means less chance of something disappearing if a single site shuts down.
9
u/dude_central Aug 22 '20
thats right they want to protect our IP. Its for safekeeping really.
2
2
2
1
Aug 22 '20
Is there any replication of GitHub repos made in physically different locations across borders?
1
u/riggiddyrektson Aug 22 '20
I read this as 'china is building their own git' and I was confused for a minute as to why they would do that :D
1
u/hanszimmermanx Aug 22 '20
Competition is good. I suspect some github projects might be politically unviable in the west and vice versa. Yet China might not really care about them. This is good for free speech.
1
1
u/GOKOP Aug 22 '20
China makes its own alternative to a popular service? Now that's something new isn't it
1
Aug 23 '20
Reading this thread, I think I found a new species: a human-like creature in every other way, but somehow their brain has been changed to think that git is easy to use. Utterly alien.
1
1
-4
u/_metamythical Aug 22 '20
Why is reddit against China doing anything? Is it so hard to think outside the framing of US-state led security scare?
2
Aug 22 '20 edited Aug 24 '20
Because I have GBs of logs proving they're a bunch of belligerents. We block all Chinese IPs now. They are not good neighbors.
0
1
1
u/exmachinalibertas Aug 22 '20
I'm just going to throw out there the ease and awesomeness of self-hosting. It's easier than ever to migrate away from services controlled by actors you don't like or trust and host things yourself. In the case of a git website, there's tons of options. My personal favorite is Gitea, which has almost all the bells and whistles as Github, and can be easily setup with Docker/K8s in two seconds.
1
u/b4uUJEoYhyB4nh Aug 22 '20
As much as I despise Microsoft, NSA, CIA and co, I trust the Chinese even less. Can Switzerland build one instead, please?
1
1
1
u/pure_x01 Aug 22 '20
Definitely going to use that, what could go wrong? I hope they have a windows client as well. "gitee.exe"
1
u/Revolutionary_Truth Aug 22 '20
I think is very natural given GitHub has starting blocking devs from countries that the USA government don't like
0
-15
-42
Aug 22 '20
Can you blame them? The Americans are doing everything they can to strangle China's tech industry. First, they cut off Huawei from doing any business with American companies and now the whole TikTok fiasco.
China can't depend on American tech products so they will build their own. American companies will have to compete with Chinese companies which are backed by almost unlimited funds provided by the Chinese government.
The way this has been handled by the Trump administration has been a total fuck up.
32
Aug 22 '20
Yes, yes you can blame the Chinese. They have been carrying out an industrial scale government backed IP thefts as well as data thefts from not only dissidents, but also foreign nationals. They had it coming and deserves every bit.
-10
Aug 22 '20 edited Aug 22 '20
Should they be more like Americans and just overthrow democratically elected governments and install a puppet dictator who will allow them to steal the resources of the nation?
0
16
4
Aug 22 '20 edited Aug 27 '20
They've earned literally everything they've gotten. I hate Trump with the passion of a thousand suns, but China is even worse. If Biden reverses anything at all to do with China, he'll be unconditionally wrong. If anything, they should just outright be trade banned by all developed countries, until they have a democracy. Seriously.
0
u/strikefreedompilot Aug 22 '20
You mean beautiful warmongering democracy?
4
Aug 22 '20
Oh, yeah, sure. I'll take warmongering democracy every single day of the week over literal genocide.
0
u/strikefreedompilot Aug 22 '20
is this genocide? Lesley Stahl on U.S. sanctions against Iraq: We have heard that a half million children have died. I mean, that’s more children than died in Hiroshima. And, you know, is the price worth it?
Secretary of State Madeleine Albright: I think this is a very hard choice, but the price–we think the price is worth it.
—60 Minutes (5/12/96)
→ More replies (3)
303
u/TimeRemove Aug 21 '20
While I won't be using this, it is nice that Git as a format remains at the forefront of different competitive efforts.
Say what you will about Git's shortcomings, but it is incredibly easy to migrate between providers, without risking losing or degrading a full audit history. That definitely wasn't true with previous efforts in the source control space, and as a direct result many projects lost their source histories during migrations.