How can I have Github on my own server?

196,580

Solution 1

There is GitHub Enterprise to satisfy your needs. And there is an open source "clone" of Github Enterprise.

PS: Now Github provides unlimited private repositories, bitbucket does the same. you can give a try to both. There are several other solutions as well.

Solution 2

I'm quite surprised nobody mentioned the open-source project gogs (http://gogs.io) or a derived fork of it called gitea (http://gitea.io) which basically offers the same what gitlab does, but with minimal system resources (low footprint), being perfect to run in a Raspberry Pi for example. Installation and maintenance is also way simpler.

Solution 3

You have a lot of options to run your own git server,

  1. Bitbucket Server

    Bitbucket Server is not free, but not costly. It costs you one time only(10$ as of now). Bitbucket is a nice option if you want a long-lasting solution.

  2. Gitea (https://gitea.io/en-us/)

    Gitea it's an open-source project. It's cross-platform and lightweight. You can use it without any cost. originally forked from Gogs(http://gogs.io). It is lightweight code hosting solution written in Golang and released under the MIT license. It works on Windows, macOS, Linux, ARM and more.

  3. Gogs (http://gogs.io)

    Gogs is a self-hosted and open source project having around 32k stars on github. You can set up the Gogs at no cost.

  4. GitLab (https://gitlab.com/)

    GitLab is a free, open-source and a web-based Git-repository manager software. It has a wiki, issue tracking, and other features. The code was originally written in Ruby, with some parts later rewritten in Golang. GitLab Community Edition (CE) is an open-source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and more. Self-host GitLab CE on your own servers, in a container, or on a cloud provider.

  5. GNU Savannah (https://savannah.gnu.org/)

    GNU Savannah is free and open-source software from the Free Software Foundation. It currently offers CVS, GNU arch, Subversion, Git, Mercurial, Bazaar, mailing list, web hosting, file hosting, and bug tracking services. However, this software is not for new users. It takes a little time to setup and masters everything about it.

  6. GitPrep (http://gitprep.yukikimoto.com/)

    GitPrep is Github clone. you can install portable GitHub system into UNIX/Linux. You can create users and repositories without limitation. This is free software.

  7. Kallithes (https://kallithea-scm.org/)

    Kallithea, a member project of Software Freedom Conservancy, is a GPLv3'd, Free Software source code management system that supports two leading version control systems, Mercurial and Git, and has a web interface that is easy to use for users and admins. You can install Kallithea on your own server and host repositories for the version control system of your choice.

  8. Tuleap (https://www.tuleap.org/)

    Tuleap is a Software development & agile management All-in-one, 100% Open Source. You can install it on docker or CentOS server.

  9. Phacility (https://www.phacility.com/)

    Phabricator is open source and you can download and install it locally on your own hardware for free. The open source install is a complete install with the full featureset.

Solution 4

Gitlab has made their service available to run on your own server for free. https://about.gitlab.com/downloads/

Solution 5

There are some open source alternatives:

Share:
196,580
JasonDavis
Author by

JasonDavis

PHP/MySQL is my flavor of choice however more recently JavaScript is really becoming something I enjoy developing with! Writing code since 2000' Currently working heavily with SugarCRM + Launching my Web Dev company ApolloWebStudio.com "Premature optimization is not the root of all evil, lack of proper planning is the root of all evil." Twitter: @JasonDavisFL Work: Apollo Web Studio - https://www.apollowebstudio.com Some of my Web Dev skills, self rated... +------------+--------+------+--------------+ | Skill | Expert | Good | Intermediate | +------------+--------+------+--------------+ | PHP | X | | | +------------+--------+------+--------------+ | MySQL | X | | | +------------+--------+------+--------------+ | Javascript | X | | +------------+--------+------+--------------+ | jQuery | X | | +------------+--------+------+--------------+ | CSS+CSS3 | X | | +------------+--------+------+--------------+ | HTML+HTML5 | X | | | +------------+--------+------+--------------+ | Photoshop | | X | | +------------+--------+------+--------------+ | Web Dev | X | | | +------------+--------+------+--------------+ | SugarCRM | X | | | +------------+--------+------+--------------+ | Magento | | X | | +------------+--------+------+--------------+ | WordPress | X | | | +------------+--------+------+--------------+ | SEO | X | | | +------------+--------+------+--------------+ | Marketing | X | | | +------------+--------+------+--------------+ |Social Media| X | | | +------------+--------+------+--------------+

Updated on November 23, 2021

Comments

  • JasonDavis
    JasonDavis over 2 years

    Is there anything out there like Github that is for your own local server? I am curious if there is like a PHP script or even a desktop client that mimics Github's functionality, I love Github but it would be nice to host on my own server.

    Apologies if this isn't considered "programming" enough but generally only programmers use GIT and Github


    Update

    First of all thanks for all the great suggestions, it is great to see there are options out there. From what is posted here and from my googling I can say it looks like the best looking/most alike to Github solutions are coded in Ruby, which is great for some but I am a PHP kind of guy (for now).

    Most of the PHP GIT viewers either are outdated and abandoned projects or they just look like crap ( I realize I could fix them up to be more like Github) but I ran across something in PHP that looks promising so far. It is called Glip it is on Github here https://github.com/patrikf/glip and to me it is the most attractive and easy to use solution I have found for PHP so far. For the advanced Git user, it may not be enough but for me, I just wanted to be able to view a git repo and that provides that functionality.

    Now my search still continues for the perfect solution, will I ever find it? I hope so but, for now, this is we got. I am considering writing my own, one that is attractive like Github and has other features like an Issue tracker for bug and feature requests. All the ones I have seen so far are not so good

  • JasonDavis
    JasonDavis over 12 years
    for the time being I am wanting mostly for my dev server so this may be good
  • JasonDavis
    JasonDavis over 12 years
    Just realized it is Ruby, it's really nice though
  • JasonDavis
    JasonDavis over 12 years
    Yeah I pretty much just like being able to browse source code easily
  • JasonDavis
    JasonDavis over 12 years
    Thanks, I just like the look and feel of Github, doesn't need to be github
  • Noufal Ibrahim
    Noufal Ibrahim over 12 years
    Git instaweb should be more than enough then. You get a lot more detail than the github default view but it's less "web 2.0".
  • marcinkuzminski
    marcinkuzminski over 10 years
    RhodeCode currently is not mostly mercurial based, git vs mercurial functionality is now 1:1
  • Job
    Job over 9 years
    Rhodecode is not really open source. GitLab is MIT.
  • Job
    Job over 9 years
    You can run GitLab for free on your own server. GitHub Enterprise costs a lot of money.
  • Sytse Sijbrandij
    Sytse Sijbrandij about 9 years
  • Phil
    Phil over 8 years
    If you can, I strongly recommend this route. By hosting the service yourself, you are not dependant on 3rd parties.
  • Ruby Racer
    Ruby Racer about 8 years
    You are a JIRA what?
  • Alex Ivasyuv
    Alex Ivasyuv almost 6 years
    @RubyRacer I guess that should be who're :)
  • Nathan Basanese
    Nathan Basanese over 5 years
    // , Except that you can't un-merge PRs. Which you can, in GH. Thanks to Stash, I would periodically lose about 8 hours of my life on a contract with a major high-tech vehicle manufacturer.
  • SomethingSomething
    SomethingSomething over 4 years
    Gitea and Gogs look just like GitHub. Your answer is from 2011 and appears to be out-of-date
  • warfish
    warfish about 4 years
    the 2020 update - You now have unlimited collaborators in private repositories as part of your GitHub Free plan. Monthly pricing for our Pro plan has been reduced from $7/month to $4/month. Monthly pricing for our paid Team plan has been reduced from $9/user to $4/user.
  • shrewmouse
    shrewmouse over 3 years
    Effective Feb 2, 2021, bitbucket is no longer an option. I've used Atlassian for about 10 years and it's so sad to see it quickly slip into the gutter. See kreuzwerker.de/en/post/bye-bye-server and atlassian.com/migration/faqs#general.
  • shrewmouse
    shrewmouse over 3 years
    Bitbucket no longer supports local servers. See kreuzwerker.de/en/post/bye-bye-server and atlassian.com/migration/faqs.
  • shrewmouse
    shrewmouse over 3 years
    Bitbucket no longer supports local servers. See kreuzwerker.de/en/post/bye-bye-server and atlassian.com/migration/faqs.
  • Kiran Maniya
    Kiran Maniya over 3 years
    @shrewmouse Thanks for noticing it. Well, Thanks for strike it through.
  • shrewmouse
    shrewmouse over 2 years
    Sadly phacility is no longer maintained :( admin.phacility.com/phame/post/view/11/…
  • Kiran Maniya
    Kiran Maniya over 2 years
    @shrewmouse thanks for improving the answer. It's sad to know one more provider stopped no-cost self-hosted environments.
  • Eboubaker
    Eboubaker almost 2 years
    please remove the link. or update it.