It seems everyone uses GitHub these days (~8 million users, 20 million projects). It's not a bad solution, but there are some drawbacks (you might not want Microsoft looking at your private code), and whether you're just looking to host your own project or setup enterprise-wide git hosting, there are other ways to host your projects in Git. Let's take a look at some options. You can see a comparison of some of these options at https://ethercalc.org/choose-the-git-host.html
=== Free Copyleft ===
<ol>
<li>[https://pagure.io/pagure Pagure] is a forge written in Python. With pagure you can host your project with its documentation, let your users report issues or request enhancements using the ticketing system and build your community of contributors by allowing them to fork your projects and contribute to it via the now-popular pull-request mechanism. Pagure is a [[RedHat]] project, licensed under the GPL v2. Pagure uses gitolite for controlling user access to repositories. At the time of this writing, Pagure is the project {{CompanyName}} prefers. Some notable features:<ul><li>customizations can be done out of tree which makes upgrading fairly painless<li>entire projects can be easily exported and imported from one instance to another, all by using only git, including issues, pull requests, and their comments because they are stored as git repos - this means for example one could host their project on pagure.io for some time and then migrate everything to their own instance once they decide to self-host - the project can even be mirrored on multiple servers with everything perpetually synchronized by external cron tasks or pagure hooks.
<li>[https://codingteam.net/project/codingteam Coding Team] is a forge written in PHP using the AGPL license. <blockquote>CodingTeam is a free (as in freedom) forge written in PHP with a lot of collaborative work and communication tools. This is a free software released under the GNU Affero General Public License version 3. A little bit of history: the project is born in march 2005 but the first public version (0.42) was released in june 2007. The first motivation of this project was to make a good forge for French-speaking users. Now, developers focus on accessibility and ease-of-use (this forge is recognized by many people as one of the only forge to have understandable and intuitive HCI). CodingTeam is available in many languages and the "lightweight but powerful" philosophy now benefits to everybody!</blockquote>
Sadly, the project doesn't seem to have progressed much past the initial support for git and mercurial.
</ol>
=== Non-free Not Copyleft ===
<ol>
<li>[https://www.phacility.com/phabricator/ Phabricator] is a full forge; and is used by the WMF. However, the code is [https://github.com/phacility/phabricator/blob/master/LICENSE Apache licensed], not GPL.
<li>'''GitBlit''' is "a pure Java git server that just works". It's run by [https://www.linkedin.com/pub/james-moger/8b/3a3/65b James Moger] and scores of other contributors. GitBlit is self-hosted, so you can get a feel for it quickly by looking at the projects own [https://dev.gitblit.com/ source code]. It does have some nice [http://gitblit.com/features.html features]. Wikimedia Ops used [http://gitblit.com/ Gitblit] prior to switching to [https://www.phacility.com/phabricator/ Phabricator].
GitBlit is designed primarily as a tool for small workgroups who want to host centralized repositories. It comes in two options: GO is an integrated single stack solution so you can really get up and running in no time flat; and there is a WAR version (assumes you already have a servlet container like Jetty or Tomcat.) Gitblit requires a Java 7 Runtime Environment (JRE) Gitblit comes with a lot of [http://gitblit.com/features.html features]
<li>[https://gitea.io/en-US/ Gitea] is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MITlicense. It's self-licensedhosted. The Gogs project is/was controlled by a single author, and the Gitea fork happened in 2016 by several users and contributors who wanted a different project management style: community-driven. Gitea is librejs compatible.<li>[https://notabug.org/about Notabug] offers free public hosting, and is based on a modified version of Gogs. Despite the leadership of Peers, it's still MIT-licensed.
</ol>