Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Who else thinks bitbucket is better than github? And that even if its not, we should host a copy of repos on bitbucket too, because competition is good?

EDIT: (For git non-pro's like me)

How does one create a copy? After creating an empty repo on the web interface:

git remote add bitbucket <url of the repo>

How does one keep it updated?

git push bitbucket <branchname>

---------------------------------

Or if you'd like to always keep the bitbucket repo in sync every time you do a git push origin (preferred method):

`git remote set-url --add --push origin <url of the repo>`



I really like Bitbucket. I never had issues and I love the fact that I have access to free private repositories. That alone is the killer feature. I like Github, but I am not that much of a social developer therefore all their social aspect to me is not that important and the fact that I need to keep my repositories open or pay is actually a downside when the competition does exactly the same thing without this problems.


Define better though? Github is clearly more about the "community". You can explore and see trending repos and overall a much better experience of discovery. Bitbucket has a few nice features too, but it seems to be more geared for closed source/private teams.


> Who else thinks bitbucket is better than github?

Each service has it's pros/cons. Github charges you for private repositories while bitbucket offers them for free. But with bitbucket you are limited to only 5 collaborators - so it's not really useful for anything but personal repo hosting. I teach classes on occasion (obviously more than 5 students) and I pre-provision repos on my own source code hosting service but I also allow the students to get a free private repo from github (they are free if you say you are using it for a class).

> And that even if its not, we should host a copy of repos on bitbucket too, because competition is good?

It's very unlikely and rare that github would go down or be shutdown but due to google code shutting down I've learned that - it's not a good idea to keep your project (code) in a central location. You can mirror it - but if you aren't running the service yourself be ready to jump ship to either shutdown or changing of features. Github did remove downloads at one point but reintroduced them as releases.

More and more employers are (incorrectly) using github as a CV for developers. So I think github will be the primary source code hosting service for awhile until people realize that a user's github profile is not a proper CV.


Bitbucket offers unlimited collaborators if you have a University email address - https://www.atlassian.com/software/views/bitbucket-academic-...

That may be useful for your classes and students.


I didn't know about that - they seem to keep that pretty hidden. In contrast github makes it very visible that they support academics.

In any case - the one benefit of running my own is that not only can I pre-provision the repos but the accounts as well. Getting students to use git is a challenge itself (it can be rather difficult to use if you don't understand the idea behind it - and pushing using SSH can also be difficult if you have never used SSH or keys before) but putting an account they can use/login with in their hands is half the battle.


they seem to keep that pretty hidden.

It's explicitly stated on their plans/pricing page, I don't think that really counts as "hidden"

https://bitbucket.org/plans


Compare that to github who has a whole subdomain dedicated to their academic offers:

https://education.github.com/


I wrote a blog post about mirroring your repos from github on bitbucket: https://deanclatworthy.com/2013/01/how-to-avoid-relying-on-g...


GitLab CEO here, we're thinking about adding a mirroring feature to GitLab.com where every 15 minutes the repo will be synched. If there are only fast-forward changes these will be applied. Branches that can't be fast forwarded will trigger an error to be displayed in the interface. Would that help you keeping your repo updated?


Actually I was going to add gitlab's name here too, but then I figured that'd go off topic. I think gitlab, because of its free CI, is actually even better than bitbucket.


Thanks Sbn, good to hear that. I think Bitbucket connect is very interesting and at GitLab we would like to have something similar. But since it is both used on-premises and as a SaaS this is more difficult. We're thinking about plugins but are afraid the fixed API's will make GitLab hard to refactor. So for now we welcome people contributing Project Services. The downside is that there is no business model for people contributing.


Atlassian employee here.

Stash, the the on premises version of Bitbucket that is also from Atlassian supports plugins and has a marketplace, so you can have plugins both on-premise and SaaS.


I was wondering about this. Are they the same plugins or different ones? Do they use the same api or a different one?


I prefer Mercurial, but using Bitbucket was bad for the visibility of many of my projects. Switching to Github means more users, and more eyes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: