News for hackers. Stuff that matters.
Re:GitHub is fully available in Iran by prepperdev on Tuesday January 05, 2021 @01:16PM (#25648786)
That sounds great, but it's a very fragile state of things.

While it certainly makes lives of Iranian developers easier, it does not make it a good idea to put their code there: laws change, and quickly sometimes.

Re:GitHub is fully available in Iran by INTPenis on Tuesday January 05, 2021 @03:00PM (#25650240)
Laws change and there are also a bunch of other ways to get banned from your code on GH. And once that happens, you have nowhere to go.

Much easier to migrate to a Gitlab instance. And they know this! Which is why it's so fun to see Github dancing around these issues lately. Finally some healthy competition.

I'd love to know how many times MS have tried to buy Gitlab. :D

[dead]
Re:GitHub is fully available in Iran by dang on Tuesday January 05, 2021 @05:17PM (#25651958)
Can you please not post in the flamewar style to HN? We're trying for something else here.

https://news.ycombinator.com/newsguidelines.html

Re:GitHub is fully available in Iran by INTPenis on Tuesday January 05, 2021 @03:57PM (#25650917)
You seem to forget about Issues, Milestones, Projects, Wiki docs and more.
Re:GitHub is fully available in Iran by SirYandi on Tuesday January 05, 2021 @04:33PM (#25651434)
Probably a naive question, but is there some way for all these elements to held in a git repo as well? Just move all your issues/trackers to another platform?
Re:GitHub is fully available in Iran by alexeldeib on Wednesday January 06, 2021 @01:43AM (#25655215)
There are some approaches, e.g. https://github.com/dspinellis/git-issue

But I don't think there's much standardization around this type of git usage, and I'm not sure how efficient it would be for large repos.

Re:GitHub is fully available in Iran by INTPenis on Tuesday January 05, 2021 @04:56PM (#25651693)
It can probably be done but some projects have thousands of issues, thousands of PRs with dozens of comments in every thread.

It doesn't seem like a good idea to make your git repo store all that data.

Re:GitHub is fully available in Iran by imhoguy on Wednesday January 06, 2021 @03:38AM (#25655803)
and users. GH, GL, BB are kind of dev social netwoks. Project assets can be archivised/mirrored easily with tools or API scripts, but there is no way to link them back to live users. Community needs to be rebuild at new place and thay is lot of effort.
Re:GitHub is fully available in Iran by throwaway894345 on Tuesday January 05, 2021 @04:02PM (#25650993)
On the other hand, hopefully the more contact Iranians have with the outside world, the more they will petition their government for peaceful relations with other countries. Obviously GitHub access isn't going to make the difference, but rather lots of these kinds of things in aggregate.
Re:GitHub is fully available in Iran by smaslennikov on Tuesday January 05, 2021 @01:25PM (#25648914)
You make a good point, I'm surprised to see it downvoted.

It's always a risk to put IP in a bucket you may lose access to just because of politics.

Re:GitHub is fully available in Iran by rubatuga on Tuesday January 05, 2021 @01:41PM (#25649168)
Git is a distributed system, so even if you lose access there isn't a huge data loss.
Re:GitHub is fully available in Iran by toper-centage on Tuesday January 05, 2021 @02:25PM (#25649813)
Unfortunately, github is 50% git, 50% proprietary code that you don't control and can't neatly export your data for other platforms. All these git hosts are walled Gardens. It's a sad state of affairs but not really limited to git (Gmail walled Garden despite email standard, messaging apps, etc).
Re:GitHub is fully available in Iran by grumple on Tuesday January 05, 2021 @03:36PM (#25650680)
Github has some great management tools for reviewing code and integrating with various integrations. But so does Gitlab, Bitbucket... and I'm sure there are more. They aren't 1 for 1 replacements, but they do exist. I'd personally recommend against using a ton of integrations that tightly bound you to any service.
Re:GitHub is fully available in Iran by toper-centage on Thursday January 07, 2021 @05:58AM (#25669632)
Yes, they all have great tools on top of git, but they are all different and hard to transfer between platforms.
Re:GitHub is fully available in Iran by prepperdev on Tuesday January 05, 2021 @01:51PM (#25649307)
Yes, making daily on-premise backups would mitigate the risk of losing source code.

That applies to everyone, not just Iranian developers: setup daily backups of all your code.

Re:GitHub is fully available in Iran by Grimm1 on Tuesday January 05, 2021 @02:25PM (#25649808)
Even more than that, as long as one person has the repo cloned you can bootstrap the entire project again, any single clone has the entire project history to the most recent point it was fetched. Git is neat that way.
Re:GitHub is fully available in Iran by prepperdev on Tuesday January 05, 2021 @02:32PM (#25649892)
That's not necessarily true. If your organization has tens of repositories with multiple important branches in each, all odds that at least some of those branches are lost.

Proper backups of all repos are an answer, of course.

Re:GitHub is fully available in Iran by throwaway894345 on Tuesday January 05, 2021 @04:07PM (#25651055)
The way we use git, master has everything that is production with short-lived feature branches for development work. Not needing to worry about git backups is perhaps the least of the benefits of this approach (and no real drawbacks as far as I can tell).
Re:GitHub is fully available in Iran by boogies on Tuesday January 05, 2021 @01:48PM (#25649251)
That’s true if you use it the way its creator does, but not so much when you replace git send-mail with GitHub’s proprietary extensions (issues, etc).
Re:GitHub is fully available in Iran by jiofih on Tuesday January 05, 2021 @02:23PM (#25649789)
Thankfully git is a distributed VCS. You just push the latest version somewhere else.
Re:GitHub is fully available in Iran by prepperdev on Tuesday January 05, 2021 @02:30PM (#25649869)
Yes, as answered in another branch, it's possible and reasonable to setup continuous / daily backups, if you're using a hosted Git service (Github or not). This will mitigate the risk of losing access to the code.

It's not advised for these Iranian developers to use any Github-specific features, such as issues, wiki, CI, because losing them will cause disruption / knowledge loss.

And then the reason to use Github specifically, instead of something else is quite low.

Re:GitHub is fully available in Iran by jiofih on Tuesday January 05, 2021 @08:27PM (#25653710)
You don’t understand - there is no need to setup backups. Every user has a full “backup” of the repository (unless using sparse checkouts or other niche configs).
Re:GitHub is fully available in Iran by prepperdev on Tuesday January 05, 2021 @10:51PM (#25654494)
It really depends on how small or large your organization is.

If it's a single repo with a single branch, sure. No need for explicit backups.

If it's tens of repos with multiple important branches in each, then it would be very dangerous to assume that developer machines have all of them.

Re:GitHub is fully available in Iran by rhencke on Tuesday January 05, 2021 @02:33PM (#25649908)
This is true for the source control aspects of Git, but not all of the project management aspects of GitHub. (wikis, gists, gh-pages: yes. issues, pull requests: no)
Re:GitHub is fully available in Iran by Aperocky on Tuesday January 05, 2021 @01:58PM (#25649411)
Does Iran not have it's own version of online git service after such a long time? I imagine it's not too difficult to set a barebone git hosting service up (without the hub functions, obviously).
Re:GitHub is fully available in Iran by duxup on Tuesday January 05, 2021 @02:34PM (#25649915)
I suspect to get the same level of availability and trust folks have in github 100% inside Iran using local hosting providers / infrastructure is actually a bit difficult.

I think it's kinda hard to compete with the big boys with limited resources / footprint even whit / perhaps because of sanctions.

Re:GitHub is fully available in Iran by spicybright on Tuesday January 05, 2021 @02:42PM (#25649994)
Right? Unless someone was actively squashing sites down, it doesn't take much attach a CRUD to a directory of folders for git repos.