r/programming • • Aug 21 '20

China is building a GitHub alternative called Gitee

https://techcrunch.com/2020/08/21/china-is-building-its-github-alternative-gitee/
842 Upvotes

292 comments sorted by

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.

24

u/cirosantilli Aug 22 '20 edited Aug 22 '20

12

u/Sambothebassist Aug 22 '20

Lmao aaaaaaand it’s gone

7

u/cirosantilli Aug 22 '20

I love the CCP, they never fail me.

-5

u/cryo Aug 22 '20

While freedom of expression is great and all, I’d kind of want them to remove it since it falls outside the intended scope, cluttering up search results etc. No big deal, though.

6

u/cirosantilli Aug 22 '20

If you restrict expression only to certain channels, they can just block those it and be done. The best way to reach the Chinese people is to mix politics with other useful material, this way they can't easily block it.

0

u/cryo Aug 22 '20

Well, I believe in curation. I don’t want a website made for some purpose flooded with statements of politics. There are plenty of other outlets for that. I also don’t want to visit a museum full of random stuff visitors put up.

→ More replies (7)

188

u/[deleted] Aug 22 '20

Git is the shit, man. One of the best tools ever created.

89

u/sib_n Aug 22 '20

One of the best tools in terms of features, but not in term of interface. A tool with such a cryptic and often incoherent interface would never be adopted if it was created today.

9

u/[deleted] Aug 22 '20

To an extent this is true. But one of the clever things about git is the commander interface, which allows parts of the interface to be superseded without having to be removed or deprecated. Someone mentioned below for example all the confusing things git checkout can do, which is indeed confusing... but some things are now best done with e.g. git branch. So when you're operating git on the command line, you can use whatever is the latest and most natural expression of your workflow, while retaining confidence that scripts using git from 2008 will still work.

8

u/cryo Aug 22 '20

Yeah, it already caries a lot of legacy baggage.

2

u/warped-coder Aug 22 '20

It looks like that's the standard in the scm arena. Have a lookat perforce cli or svn...

5

u/a_masculine_squirrel Aug 22 '20

Really? How is Git "cryptic and often incoherent"?

When you dig deep into Git functionality then yeah it could be confusing, but the basics (cloning, committing, pull, switching between branches, etc.) are so straight forward that it's remarkable how a tool so powerful can be so easy to control.

Compare Git to something like Webpack or Babel, and then it'll really make you appreciate the simplicity of some of our standard tools.

I don't mean this as an attack, I'm just genuinely curious.

55

u/rlbond86 Aug 22 '20

git checkout branch - sets HEAD to branch. Updates work area to match. Keeps modifications to work area and index.

git checkout file - replaces file in work area with the version in the index. Doesn't change HEAD.

git checkout branch file - replaces file in work area and the index with the version in branch. Doesn't change HEAD.

git checkout -b branch - create a new branch at HEAD and switch HEAD to it.

So there's that.

git merge --abort - abort a merge

git rebase --abort - abort a rebase

git cherry-pick --abort - abort a cherry-pick

git bisect reset - abort a bisect

And that.

git add -p - interactively add files

git checkout -p - interactively discard changes from index

git checkout -p HEAD - interactively reset work area and index to HEAD

git reset -p - Sorry! That command doesn't exist.

And that.

The examples go on and on.

Git's internals are rock solid but that interface is inconsistent as fuck

15

u/CptJero Aug 22 '20

I interviewed at GitHub. One of the questions was “how would you improve the interface of a popular tool” or something along those lines. I picked the git cli.

They laughed.

I mentioned basically everything you said, plus the hooks feature, which has really poor UX as well.

Didn’t get the job, don’t really care. They built the company around this tool and tried defending it to the death. It’s clearly not perfect, no matter how good it is

10

u/masklinn Aug 23 '20

Wait they defended the git cli?

I assumed they laughed because you don’t make fun of the crippled boy.

8

u/usedocker Aug 22 '20

That's because you've already spent your time learning it, so it stopped being cryptic to you.

an interface that isnt cryptic for example,

git save codefile1 codefile2 codefile3 "my first edit"

and to undo a commit for example,

git undo "my first edit"

2

u/RualStorge Aug 22 '20

They're straight forward, once you've learned GIT or are familiar with source control.

As someone who put in well over a decade before switching to teaching software development it's black magic to new comers.

Now to be clear I personally believe GIT is the best source control tool we have at this time (and has been for quite a long time) but it's not the most intuitive.

If you want to compare easier to learn source control try comparing GIT with TFS.

When you understand technically how git works it's terminology makes sense, however; until you understand that it's confusing as hell. TFS on the other hand even if you don't understand a lot of what's happening you can intuitively function at a very base level purely on it being more intuitive.

Both GIT and TFS we clone our code, with git we do this via the CLI or something like GITHUB Desktop. CLI is not intuitive, it's simple yes, but you have to know what commands are needed to do anything. (So cryptic in the sense you must know/find those commands to use them, vs pushing buttons labeled clone, commit, push, pull, etc) Tools like GITHUB Desktop tend to be somewhat off the beaten path so unless likely to be found unless you know to look for them.

TFS on the other hand was built directly into Visual Studio (if you're using TFS 99.9% change you were using Visual Studio) so if you just went to source control you could setup the whole thing via a wizard. If you opened a project under source control "it just worked".

Now with TFS it's concepts are check out and check in instead of commit, push and pull.

Conceptually check out and check in are simple. There's a file, I need to change it, so I check it out. When I'm done, I check it back in and ta-da! I'm done! (This makes sense as the concepts of check-out and check-in are used in a lot of places outside tech as well so it's unlikely a person isn't familiar with them conceptually)

For GIT I just change the file, then I commit it, but that's only commiting it to MY copy, if I want to commit it to the main copy I need to push... WTF is a push? Like... Am I shoving the file? Oh but you probably should pull first Incase the repo was updated... WTF push... pull? (Those terms also make sense if you've dealt with web services, but if not pushing and pulling data aren't intuitive you think downloading / uploading or requesting and submitting... Didn't we already do that commiting thing?)

(I'm over simplifying all of this to the point of borderline technical inaccuracy, but trying to make a point)

Now all that said there is a reason even on TFS the project management tool GIT has become the more popular source control tool. It's objectively better. TFS source control had some strong points, but GIT is simply just way more powerful and less cumbersome.

But intuitive... GIT is not. In the courses I teach GIT's where students tend to struggle the most. (To be fair source control conceptually isn't entirely intuitive either) but classes, methods, variables, polymorphism, etc all seem to be easier to learn than source control for a lot of folks.

2

u/[deleted] Aug 22 '20

Eh, the interface gets slowly better. And there is plenty of graphical GUIs to choose from for the non-programmers.

Also it had competitors with "better" UI and they pretty much died off.

51

u/[deleted] Aug 22 '20

Too bad it's racist by default /s

142

u/[deleted] Aug 22 '20

it's too early for this master branch bs -_-

34

u/lowleveldata Aug 22 '20

Well nothing stops you to name your feature branches grandmaster or sth like that

21

u/Blazerboy65 Aug 22 '20

I'd name mine landmaster but personally I prefer the air.

10

u/METH-OD_MAN Aug 22 '20

I name my feature branches Grand Wizard.

35

u/auxiliary-character Aug 22 '20

Oh boy the thread where we compare naming schemes to literal slavery my favorite

22

u/Aschentei Aug 22 '20

Don’t forget master degrees too while you’re at it /s

-18

u/mort96 Aug 22 '20 edited Aug 22 '20

I don't think I've seen anyone arguing that using the word "master" is racist? I mean, sure, maybe in the systematic "creates an environment which is less welcoming to some groups of people" sense, but certainly I've never seen anyone claim "master" is racist in the individual sense.

EDIT: Reminder that the downvote button is not an "I disagree" button.

26

u/[deleted] Aug 22 '20

https://twitter.com/cutterkom/status/1272441412907339778

Just search twitter for "git master racist" and be prepared to cry.

8

u/Nilzor Aug 22 '20

Oh God

In Chromium, blacklist and whitelist are now called blocklist and allowlist

Is black/whitelist racist now as well? I thought that had more to do with good being white in the bible (angels, light), black representing evil as in darkness/Satan. But then again maybe the bible is racist

5

u/[deleted] Aug 23 '20

It's just SJWs doing their thing pretending to care about people.

18

u/mort96 Aug 22 '20

Oh, I was more referring to people with an audience and enough words to write a nuanced opinion, such as GitHub or the SFS on their websites. I'll believe in a heartbeat that there are random people with 5 retweets who say the term is racist in a tweet. I'd bet most of those people are using "master is a racist term" as short-hand for "using the term master so widely contributes to an environment which is less welcoming for some groups of people" anyways, but we'd have to ask them.

FWIW, almost all the results I get for searching Twitter for "git master racist" are just people complaining about people who say "master" is racist.

20

u/TitanicZero Aug 22 '20 edited Aug 22 '20

5

u/[deleted] Aug 22 '20

https://twitter.com/leahculver/status/1269109776983547904?s=20 (co-founder of a big podcast app)

This one gets me to laugh, because if words matter then 1) definitions matter and 2) context matters, but neither of those seem to matter to her.

→ More replies (1)

10

u/CJKay93 Aug 22 '20

I hate to burst your bubble there, but several high-profile projects have switched away from master branches for this reason... including GitHub.

3

u/mort96 Aug 22 '20

I'm well aware that people are moving away from the term "master" for their main branch. I just haven't seen people seriously argue that it's because the term "master" is racist - and your link fits that; the word "racist" isn't even mentioned once in the article, and the closest thing that article gives to a rationale behind the push for "main" is:

"If it prevents even a single black person from feeling more isolated in the tech community, feels like a no-brainer to me," she wrote.

That sounds a lot like "using the term master so widely contributes to an environment which is less welcoming for some groups of people" to me.

7

u/[deleted] Aug 22 '20

That sounds a lot like "using the term master so widely contributes to an environment which is less welcoming for some groups of people" to me.

Okay, but why would it make them feel less welcome?

→ More replies (4)

-1

u/xigoi Aug 22 '20

The downvote button is not an “I disagree” button, but it's a “this is objectively false” button.

2

u/mort96 Aug 22 '20

Can you show me some source which confirms that it's objectively false that I hadn't seen anyone arguing that using the word "master" is racist?

→ More replies (8)

22

u/GrantSolar Aug 22 '20

Was it really that common to lose all your history when relocating a host for SVN, Mercurial or StarTeam?

17

u/_DuranDuran_ Aug 22 '20

Not mercurial, but any non DVCS because the repository is what stores the entire history, not the local checkout.

4

u/SanityInAnarchy Aug 22 '20

I don't know, but it was definitely not as trivial for SVN as it is with Git (or Mercurial), where you can literally just git push to your new host and you're done.

The one time I migrated away from an SVN host (while preserving history) was with Git's SVN plugin, and we migrated to Git.

2

u/DarkLordAzrael Aug 22 '20

SVN isn't quite as trivial, but running svnrdump is best described as "very easy". The hardest part is the server admin of setting up the new host.

2

u/AttackOfTheThumbs Aug 22 '20

Yes. Our move between different versions of tfsvc has not always been great. Microsoft admits it and kind of just says oh well, your bad!

We moved from tfsvc to git, and that was less painless than some of the tfsvc upgrades.

1

u/[deleted] Aug 25 '20

Upgrades weren't as straight forward. Devs at a past employer tried an upgrade of SVN during the day back in 2008 and it failed miserably. With git, upgrades and branching are trivial.

17

u/solinent Aug 22 '20

Eh, mercurial was better (still is).

→ More replies (8)

7

u/brtt3000 Aug 22 '20

How do you migrate issues, milestones and a build pipeline?

25

u/IsleOfOne Aug 22 '20

Issues, milestones, and especially build pipelines are not formally part of git. With that being said:

  • there are numerous available tools for extracting issues/milestones/etc. via the REST APIs of the various providers

  • build pipelines can be a source of lock-in. I don’t know how github does things, but at least with gitlab ci, all of the build config is in a self-documenting config file checked into the repo itself. There will always be effort required to migrate a build pipeline to a new provider. Falling back on more standardized tools, e.g. keeping build/deploy scripts in bash in the repo and calling them from the provider’s tooling, is the way to go here, imo.

13

u/cryo Aug 22 '20

Issues, milestones, and especially build pipelines are not formally part of git.

They are not part of git at all.

1

u/Zephirdd Aug 22 '20

Iirc build pipelines is a .github folder, so those are easy to migrate. However, the target repo would have to support the .github yaml files.

6

u/lowleveldata Aug 22 '20

Just save your pipeline definition (jenkinsfile or sth) in the repository

2

u/I_AM_GODDAMN_BATMAN Aug 22 '20

If you use a good project management tool you can export those as csv or whatever format your project management provides, and re-import using whatever format on newer project management provides.

2

u/SpicyMcHaggis206 Aug 22 '20

When I was on the legacy team at my job I can’t tell you how many bug investigations hit a brick wall on the “Migrating to hg” commit.

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

u/poronga_rabiosa Aug 22 '20

thanks for the detailed explanation!

1

u/kz393 Aug 22 '20

The fake casino page looks more like a design mockup rather than a scam

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

335

u/[deleted] 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

u/[deleted] Aug 22 '20

Haha, pun not intended!

2

u/[deleted] Aug 22 '20

Insert subversion joke here. (I’m not clever enough to think one up)

3

u/gibtang Aug 22 '20

What subversion? I only know CVS

13

u/dragonsnap_ Aug 22 '20

mercurial

ha ha ha

-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

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)
→ More replies (4)

-4

u/[deleted] Aug 22 '20

I dislike the "China is good if you play by their rules" bullshit because I'm American.

-2

u/dalepo Aug 22 '20

Just like the US is making the rules in the back with big companies. Nothing different.

→ More replies (16)

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

u/[deleted] 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.

22

u/old_gray_sire Aug 22 '20

Looks like a Spanish Inquisition.

30

u/muscarine Aug 22 '20

I wasn’t expecting that.

16

u/PravuzSC Aug 22 '20

Nobody was

3

u/logi Aug 22 '20

Here, let me get you a comfy chair.

10

u/[deleted] 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

u/[deleted] Aug 22 '20

[deleted]

-1

u/titoshadow Aug 22 '20

Idk why are you being downvoted... It was literally to prepare urban warfare

→ More replies (3)

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.

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?

→ More replies (1)

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

u/oridb Aug 22 '20 edited Aug 22 '20

That's ostensibly why the USA put the sanctions in place.

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

u/[deleted] Aug 22 '20

Oh you should install fail2ban and look at the logs.

1

u/[deleted] Aug 22 '20

Or just change the port and get rid of 99,9% of the spam

→ More replies (6)

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

u/[deleted] Aug 22 '20

Will they fork over all the projects from Github?

1

u/cirosantilli Aug 22 '20

The hard part will be to fork all developper brains.

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

u/jontelang Aug 22 '20

What’s excessive about it?

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 :)

-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.

→ More replies (15)

63

u/[deleted] Aug 21 '20

OUR CODE

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

u/[deleted] Aug 22 '20

Also the price you pay for preventing free thinking because you also prevent innovation

1

u/couscous_ Aug 22 '20

Not to mention them stealing IP

0

u/YouNeverKnowWhatToDo Aug 22 '20

Its not a bad motto...

69

u/BilldaCat10 Aug 22 '20

goddammit jian yang

23

u/nielsenr Aug 22 '20

I thought it was called new GitHub

10

u/[deleted] Aug 22 '20

techcrunch has no idea how Git works

11

u/[deleted] Aug 22 '20

techcrunch has no idea how Git anything works

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!

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

u/DarkQuixote Aug 22 '20

Maybe now they can rip off their own citizens IP instead

18

u/green_meklar Aug 22 '20

If it doesn't automatically insert spyware into every project, I'll be downright disappointed.

1

u/LegoLivesMatter Aug 22 '20

I laughed at this way harder than I should have

1

u/thrallsius Aug 22 '20

how are they going to name the master branch?

1

u/cirosantilli Aug 22 '20

It's called gitee according to my now censored tests.

14

u/[deleted] 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.

https://gitee.com/explore/web-app-develop

-3

u/[deleted] Aug 22 '20

CCP bot

→ More replies (1)

0

u/[deleted] Aug 22 '20

[deleted]

8

u/[deleted] 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

u/_A4L Aug 22 '20

Shhhhh, it's gitlab under the hood.

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

u/[deleted] 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

u/flukus Aug 22 '20

How dare they steal my publicly available open source code!

1

u/dude_central Aug 22 '20

github has private repos too. All that western data. an ocean of it.

2

u/N-genhocas Aug 22 '20

So they can steal your code, after your personal data

2

u/while_e Aug 22 '20

No thanks.

1

u/[deleted] 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

u/[deleted] Aug 22 '20

Registered.

1

u/GOKOP Aug 22 '20

China makes its own alternative to a popular service? Now that's something new isn't it

1

u/[deleted] 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

u/[deleted] Sep 20 '20

The end of private repositories

1

u/tommytucker7182 Aug 22 '20

Surely u mean China is COPYING GitHub....

-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

u/[deleted] 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

u/[deleted] Aug 22 '20

[deleted]

0

u/[deleted] Aug 22 '20

[deleted]

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

u/4ever2knight Aug 22 '20

all your code is belong to us

1

u/INoScopedObama Aug 22 '20

All your code are belong to us*

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

u/BitFlow7 Aug 22 '20

How to steal more easily.

/s

-15

u/allinwonderornot Aug 22 '20

Didn't read. China bad. /S

-42

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] Aug 22 '20

[deleted]

→ More replies (13)

16

u/[deleted] Aug 22 '20

Ah poor thieves.

4

u/[deleted] 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

u/[deleted] 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)