r/javascript • u/-pouria • Jan 14 '19
Since Github now has free private repos, here's a node project that migrates your Bitbucket repos over to Github.
https://github.com/pouriaa/bitbucket-to-github2
u/ashwameghwork Jan 15 '19
I will try it 👍
1
67
u/derSchwamm11 Jan 14 '19
I've used bitbucket for private repos for years and been happy with it. I'm glad Github is offering this but is there a good reason I should switch?
93
u/yesman_85 Jan 14 '19
BitBucket = Atlassian = Australian.
83
u/13steinj Jan 14 '19
To clarify, they have made a series of laws allowing
spying on the constituents' devices if you're a governmental authority
asking for employees to create backdoors
not allowing those employees to admit such
allowing them to be fired for creating the backdoor.
among more
19
u/derSchwamm11 Jan 14 '19
This is a good reason. I hadn't made the connection about Atlassian being Australian. Thank you
6
u/deadcow5 Jan 15 '19
Too bad, really. I barely use any Atlassian products, but SourceTree blows GitHub Desktop right out of the water.
8
u/RomanRiesen Jan 15 '19
Whut?
Gov: create a backdoor please
Empl: No, I could get fired
Gov: You could get worse, we have the monopoly of violence
Empl: Ok, ok...I have talk to my boss though
Gov: Heh. About that...Wtf???
1
u/13steinj Jan 15 '19 edited Jan 15 '19
In regard to what exactly?
E: you edited your comment. Yup, exactly.
2
u/RomanRiesen Jan 15 '19
Aren't these 'laws' contradictory? Am i missing something?
10
u/13steinj Jan 15 '19
I'm assuming you mean the latter 3 bullet points?
No they aren't contradictory. The government can
force an employee to create a backdoor under threat of prison/fines
force the employee not to talk about it under threat of prison/fines
put a law in place such that even if the backdoor is found out, and who put it in, the government won't protect that employee from getting fired. If they admit they put it in, on top of being fired, as mentioned previously, they will incur prison / fines.
6
u/RomanRiesen Jan 15 '19 edited Jan 15 '19
Contradictory was kind of the wrong term to use. Let's call them dickheaded. Cunt-ish.
1
-1
u/lachlanhunt Jan 14 '19 edited Jan 15 '19
The last 3 points in your list are myths. No individual employee will be secretly compelled to do something without their employers knowledge. Requests will go through the same channels as any other legal request.
Edit: See responses below for source
8
u/extracocoa Jan 14 '19
Do you have a source please? Everything I’ve read so far has said otherwise.
4
u/13steinj Jan 14 '19
Source? Literally every source has said otherwise. So much so that Australian companies are starting to in greater numbers higher remote positions.
13
u/lachlanhunt Jan 14 '19
When the law came into effect, my company's lawyers briefed us on what impact it would have and that was one of the myths they debunked.
Also, Bitbucket and GitHub are not communications providers and are not targeted by the new law anyway. They were and still are subject to warrants requesting information according to pre-existing laws. Nothing hosted on those services is encrypted in a way that prevents the companies accessing the data from any account anyway, unless you encrypt it yourself before committing and pushing.
Disclaimer: I work for Atlassian, but this is not an official statement. I'm just paraphrasing what our lawyers told us.
7
u/13steinj Jan 14 '19
With respect, that's your companies lawyers, and not a group of independent lawyers willing to tell the masses. I can't verify that source, not to mention the obvious bias it has.
In the exact same way you said this, like I mentioned, there have been reports of Australian companies switching to non-Australian developers for exactly these laws, both communication providers and not. Are you to tell me that their lawyers are fools and yours aren't?
Again, not against you. Just that this source is not verifiable.
3
u/lachlanhunt Jan 15 '19
4
u/13steinj Jan 15 '19
Thanks. I'm still skeptical and personally wouldn't risk anything because of it, but I'm more at ease.
Poor wording will screw over all, eventually.
13
11
u/lachlanhunt Jan 14 '19
By calling out Australia as being a problem, I'm assuming you're referring to the recent encrypted communications laws. Those laws affect any company that offers products or services to Australians. GitHub is equally affected by them.
0
Jan 15 '19
[deleted]
1
u/lachlanhunt Jan 15 '19
No. The law is designed to target encrypted communications services like WhatsApp. Facebook, who owns WhatsApp, does not have any employees located in Australia. But they are absolutely subject to the law because they offer services to Australians within Australia.
2
u/13steinj Jan 15 '19
Perhaps, but thats only one piece of the law (Australia cannnot force some random US employee to make a backdoor), and companies have said that they'd rather pull out (in some cases).
The difference with Atlassian is that they can't easily pull out, and definitely have Australian employees.
1
u/lachlanhunt Jan 15 '19
GitHub is owned by Microsoft, and Microsoft has employees located within Australia too. There's not chance of Microsoft or GitHub pulling out of the Australian market.
2
u/13steinj Jan 15 '19
The difference being the amount. Even if MS has Australian developers they are few in number-- even fewer are those who are part of Github. Conpanies have started paying for their Australian employees to relocate.
3
u/fucking_passwords Jan 14 '19
I dunno about other people but I think githubs tooling and UI are wayy more refined, and better dev experience matters a lot to me.
8
u/ParasympatheticBear Jan 14 '19
Not really
8
u/13steinj Jan 14 '19
If you care the slightest bit about security (because of a new Australian law both forcing employees to comply to backdoor requests while keeping them secret and allowing them be fired if found out because of it), then yes.
-11
u/bittercode Jan 14 '19
Yes - if you care the slightest bit about security move it over to Microsoft.
4
u/13steinj Jan 14 '19
-1
u/bittercode Jan 15 '19
You are a hypocrite - ignoring the reality of the corporate American and the political climate in America - advocating the switch to a known abuser of individual rights in favor of some worry about a company based out of Australia.
1
u/13steinj Jan 15 '19
What? How high are you? What conspiracy theory are you trying to imply here?
0
u/bittercode Jan 15 '19
Conspiracy?
please. are you so ignorant or is it willful?
Microsoft has a proven history of sending telemetry without user interaction - making it difficult if not impossible to turn off. They were a part of the illegal sharing of personal data from Facebook.
The cloud act forces US companies to turn over data to US authorities even for people who are not US citizens and the data is not held in the US.
Explain to me rationally and with facts how this is so different from Australia and Atlassian.
1
u/13steinj Jan 15 '19
Microsoft has a proven history of sending telemetry without user interaction - making it difficult if not impossible to turn off. They were a part of the illegal sharing of personal data from Facebook.
How is this related to stealing code and or government requested backdoors?
The cloud act forces US companies to turn over data to US authorities even for people who are not US citizens and the data is not held in the US.
From Wikipedia,
...Principally, it asserts that U.S. data and communication companies must provide stored data for U.S. citizens on any server they own and operate when requested by warrant, but provides mechanisms for the companies or the courts to reject or challenge these if they believe the request violates the privacy rights of the foreign country the data is stored in.
Keyword being by warrant. As in, a judge must go in and make that call. Warrants are provided only when a judge determines that there is probable cause of a crime.
In contrast, the Australian law has provisions for the creation of widespread backdoors before any crime occurs.
Not to mention the CLOUD act does not hold water legalese-wise when it is impossible for the company to provide the data, whether they aren't keeping it or it is end to end encrypted. The Australian law doesn't care, and has language that provides for the storing of data and creation of a hole in said end to end encryption.
So before you go on being a conspiracy theorist calling me a hypocrite about how MS is bad or US law is bad or whatever (because you aren't even clear on what your point is), read up on what your billigerantly spitting at me over a damned keyboard.
0
u/bittercode Jan 15 '19
You are ignoring history - making assumptions that support your assertions, rejecting assumptions that don't and labeling them as conspiracies. It's just weird and makes continuing a waste of time.
You seem to be able to know things but think warrants aren't given freely to US law enforcement. You are apparently unaware of US law enforcement surveillance abuses. You don't seem to generalize in your thinking and grasp the implications of how these things go together.
You seem fixated on stealing code, unable to imagine that Github has access to much more data about its users than just the code they check in. You are willfully ignoring that MS has a proven history of collecting and using consumer information in a deceptive way. You label the historical records of these events that have already taken place as conspiracy.
You ignore US law as apparently only just or irrelevant but insist, despite posts by Australians who have engaged on this with lawyers that your skepticism carries more weight than the legal advice they have had.
Yet I'm belligerent and spitting. I appreciate your sense of humor even if it is unintentional.
→ More replies (0)2
u/Kumagor0 Jan 15 '19
Being able to rebase and merge with a single button click.
Also I personally like github UI way more.
-10
u/manys Jan 14 '19
It's good for if you want your code to be in Microsoft's purse.
11
u/13steinj Jan 14 '19 edited Jan 14 '19
I don't understand how people can be this silly
it is illegal for MS to steal code.
it is easy to find out if you should suspect that MS steals your code.
it is easy to determine if MS steals your code.
it is easy to sue and win if MS steals your code.
Just ask Apple. They settled out of court but we know it included a 150 million dollar investment into non-voting Apple stock and keeping MS Office up to date on Macs for 5 years (and as part of the settlement because MS wanted something too, they did 1 wrong but so far are doing 2 retributions, IE was made the default browser on the Mac for some time).
They was going to be a a multi billion dollar lawsuit but MS threatened to stop MS Office for Mac support. For Apple that was more important than money because MS Office is the standard office utility suite. But for little ole you, take the money.
E: spelling and grammar
-4
u/manys Jan 14 '19
"Stealing code" is not the only implication of "purse."
1
u/13steinj Jan 14 '19
What implication are you thinking of then? Because other than that the only thing you could be referring to is monetary gain, and most third party repo integrations (CI/CD/issue panel/whatever) offer Github support, so thats not MS's purse.
1
u/13steinj Jan 14 '19
What implication are you thinking of then? Because other than that the only thing you could be referring to is monetary gain, and most third party repo integrations (CI/CD/issue panel/whatever) offer Github support, so thats not MS's purse.
E: Also you specified code in purse, so there actually isn't any other implication I can think of for "code in purse".
-6
u/manys Jan 14 '19
Turning GH into a shitty website in general in order to make it pay for itself, for one.
4
u/13steinj Jan 14 '19
That's not putting code into their purse, it's putting repo management into their purse.
They haven't done that yet.
It's ridiculous to think they will do that, it is a horrible business model and switching would be easy
It's even more ridiculous to complain about it before such a thing even occurs.
It's even more ridiculous when you realize that A, Github could have done that before the buyout, and B, every hosting service can still do that as they please. Just because MS owns it doesn't mean the liklihood of such a thing increases.
No matter which host you use, you will always have that problem unless you run your own host (whether it be a simple git server or Gitlab/Github/BitBucket/whatever enterprise), which has it's own problems because hosting will always cost you.
I'm surprised that the "Microsoft more like Micro$hit" fanboys have resorted to arguments not against MS but against the idea of hosting itself but treating it like it's only a negative for Github because MS
I'm not saying you should like MS. But you shouldn't blindly hate them either.
0
u/manys Jan 15 '19
It's ridiculous to think they will do that, it is a horrible business model and switching would be easy
Famous last words!
6
3
-2
u/jimmykup Jan 15 '19
5
u/13steinj Jan 15 '19
With respect, James Kyle was found out to be completely bullshitting on that during the Lerna debacle, and he is a constant SJW and fool in the open source community.
https://www.reddit.com/r/programming/comments/9b6kpa/_/e5112rk
https://www.reddit.com/r/programming/comments/9b6kpa/_/e51zxuw
This is the guy who weaponized his maintainership of Lerna to make a software license political, as my linked thread is about. Direct thread link.
In short, that twitter thread is a lie. MS did not steal his code. Some concepts in Rush are similar. But his code was not stolen.
1
0
Jan 14 '19
[deleted]
2
u/calsosta Jan 15 '19
I agree with you unfortunately I looked at GH enterprise pricing and BB is still way cheaper, only $2 a month VS $9.
0
33
u/akie Jan 14 '19
Why, though? Also, can’t you just add a new remote repository (GitHub) and push?
17
u/tunisia3507 Jan 14 '19
If you're actively working on every single one of your small number of repos, sure. Don't know about anyone else but that's certainly not the case for me.
4
27
u/seiyria Jan 14 '19
Gitlab has had free private repos since it existed FWIW to all who haven't heard of/used it.
8
u/natcodes Jan 15 '19
Those repos (at least AFAIK) aren't limited on the number of collaborators you can have, whereas GitHub is. So if you need more than 3 people on a project that you want to stay private you either need to pay GitHub $7USD/month or use GitLab.
2
u/seiyria Jan 15 '19
This is correct, the limitation on the github repos is not oft discussed, people just say "wow, free private repos!" which, truthfully, is enough for most.
3
u/natcodes Jan 15 '19
Yeah, to be fair to GitHub their free tier is just targeting like one-off projects and small time developers, wouldn't want teams or something abusing the free tier.
2
u/seiyria Jan 15 '19
Right. It's definitely within their target market and it was the easiest way to not piss off people already paying them for repos. But, Gitlab has had this option for a long time - so it's good that Github is catching up in that regard.
0
Jan 14 '19
[deleted]
10
u/seiyria Jan 14 '19
Yeah, one major incident they were transparent about. It happens, they have backups, their backups work. Dunno about downtime, but you do you kiddo.
0
9
u/daveaftershok Jan 14 '19
Poor bitbucket 😄
2
u/pm-me-a-pic Jan 14 '19
BitBucket sucks in a lot of ways, but it does have better branch protections, and merge strategies.
Gitlab and BitBucket are better than Github in this way. Github Enterprise offers serverside git hooks which can be a solution, but it's less elegant than BB and gitlab.
-1
4
2
3
u/arsum04 Jan 14 '19
Awesome, thanks man. I'll mention that maybe you can try changing your for loops to foreach for readability but otherwise looks clean. Edit: looks like you're using await inside the loop so for each won't work nvm haha.
3
u/brofesor Jan 14 '19
So you're telling me Microsoft haven't managed to alienate users and kill it straight away? What's the catch?! 🤔
6
u/_imjosh Jan 15 '19
Ballmer’s gone. So it’s no longer about developers, developers, developers, developers...
Actually MS seems a lot different/better for developers now.
2
u/enplanedrole Jan 14 '19
Embrace, extend, extinguish ;) - this is the extend part. Soon Microsoft will extend the git protocol and make some paid ‘pro’ parts ;)
11
u/twwilliams Jan 14 '19
Microsoft has been supporting Git in its developer tools and ALM products (TFS/VSTS/Azure DevOps) for years. They have also contributed significant features to Git itself, like the Git Virtual File System.
Embrace, extend, extinguish is not the way today's Microsoft operates, at least not in developer space.
1
u/enplanedrole Jan 15 '19
The thing is, I want to believe this, but I’ve seen too many counterexamples to actually do... Time will tell :)
5
u/havana59er Jan 14 '19
If Github is going for feature parity with other git hosting providers then the next step would be to implement pipelines for builds. That would probably be limited to 300 build hours/year for free edition for non-open source orgs, or something like that.
I really hope they do implement pipelines because this would allow them to truly distinguish themselves from the competition. I'm currently a bitbucket user for work, and I'm less than impressed with their pipeline implementation.
3
u/voyagerfan5761 Jan 14 '19
I think the (beta) Actions feature can be used for this already. Someday I'll figure out how to use it and try it out, since my account was already let into the beta…
1
1
u/heyzeto Jan 15 '19
Can you eli5 on how/why I use pipelines on GitHub?
2
u/havana59er Jan 15 '19
Since I don't know anything about github I'll talk about bitbucket. Pipelines are basically a toolset to implement continuous integration and continuous delivery from your source code. When someone checks in source code to the repository, a pipeline is triggered. The pipeline will execute tasks, such as building the project, running all tests, deploying to a qa environment. I believe the bitbucket philosophy behind pipelines is to have a single pipeline deliver a change to all environments - test, qa, production. So an example pipeline would look like this: push code changes to master, launch pipeline, build, test, deploy to integration environment, run ui tests, deploy to qa env, pause for manual intervention, user logs in to bitbucket and continues pipeline, deploy to production env.
In bitbucket these tasks are run in docker containers. The pipelines are configured in a YAML script, and the tasks can be implemented in any way that fits your needs (node, bash, ruby, etc).
3
1
2
-3
u/rsvp_to_life Jan 15 '19
Good, fuck you atlassian.
5
u/pwnies Jan 15 '19
As someone who works at Atlassian I'd like to understand your sentiment - what do we need to work on /u/rsvp_to_life?
6
2
u/NobleFraud Jan 15 '19
Australian law
5
u/pwnies Jan 15 '19
It's something we're actively fighting for more freedom in, but keep in mind we're as equally impacted as github/gitlab/anyone else who provides services in Australia by their encryption laws. These laws reach far past Atlassian.
1
u/rsvp_to_life Jan 17 '19
Bamboo build server. Years ago I used it and what an utter nightmare trying to fine any tutorials or documents on how to use it. It's not as bad as Jenkins. But it's up there.
The biggest thing was that at the time nothing was intuitive of how to use it, what what even a use case was for it.
1
u/pwnies Jan 17 '19
If you're not self hosting builds, we wrote bitbucket pipelines from scratch to address a lot of the feedback we got from Bamboo.
Also for what it's worth, Atlassian has changed tremendously in the last few years. We've invested a ton into UI/UX to make things a lot more clear.
0
u/bart2019 Jan 15 '19
Frankly, I doubt that this will last. And then, you're stuck on GitHub.
1
u/RufusThreepwood Jan 15 '19
Why are you stuck on github?
1
u/bart2019 Jan 15 '19
How easy is it to migrate away from Github, back to your old version control system? Probably it's harder than migrating towards Git and Github.
1
-1
-30
u/Baryn Jan 14 '19
Ironically, not a private repo.
27
u/stifleyourslackenmaw Jan 14 '19
this seems completely unironic to me
-23
u/Baryn Jan 14 '19
Crap, I forgot what happens when you use the word irony on the Internet.
8
u/stifleyourslackenmaw Jan 14 '19
haha it's funny though. because when I read your message, I read it as if it was on "a private repo", missing the "not" modifier
actually I agree with you about it being (slightly) ironic, and I dunno why you're the one getting downvoted instead of me. perhaps your snide and condescending response is mostly responsible
-2
u/Baryn Jan 15 '19
perhaps your snide and condescending response is mostly responsible
I typed it as I twirled my mustache. As inefficient as you’d imagine.
1
0
Jan 15 '19
[deleted]
3
u/-pouria Jan 15 '19
Cool, haven't seen that tool before. Thanks for sharing.
However, checkout the official documentation for the tool. Specifically:
GitHub Importer is not suitable for all imports. For example, if your existing code is hosted on a private network, our tool won't be able to access it. In these cases, we recommend importing using the command line for Git repositories or an external source code migration tool for projects imported from other version control systems.
Only seems to work with public repos.
0
u/Amadox Jan 15 '19
no, that line is about private NETWORKS, not private repos. Ie, when the server hosting your repo isn't accessible publicly over the internet, regardless of the permissions of the repo itself.
0
Jan 15 '19
[deleted]
2
u/-pouria Jan 15 '19
Nice! This would be the right tool if you only have a couple of repos to migrate.
0
Jan 14 '19
[deleted]
4
1
u/jdewittweb Jan 15 '19
Happened because of MS. They don't care about paltry $7/mo subscriptions. They want enterprise licensing fees.
0
Jan 15 '19
[deleted]
7
u/natcodes Jan 15 '19
Imagine saying and thinking this ironically. The fragility of other white people will never cease to amaze me.
0
Jan 15 '19
[deleted]
3
u/natcodes Jan 15 '19
What "argument"? You presented a claim with 0 evidence and in your post history say you're not looking to fight with "SJWs". Have fun being a disingenuous bigot tho!
101
u/license-bot Jan 14 '19
Thanks for sharing your open source project, but it looks like you haven't specified a license.
choosealicense.com is a great resource to learn about open source software licensing.