git: Difference between revisions
Cweiske.de (talk | contribs) |
Cweiske.de (talk | contribs) (→POSSE) |
||
Line 36: | Line 36: | ||
* Using [http://git-scm.com/book/en/Customizing-Git-Git-Hooks git hooks] one could [[POSSE]] to any of the git silos. | * Using [http://git-scm.com/book/en/Customizing-Git-Git-Hooks git hooks] one could [[POSSE]] to any of the git silos. | ||
== Documentation == | == Documentation == |
Revision as of 21:01, 4 February 2015
Git is a popular distributed source control management system that can be used to host and share code from independent sites.
Software
The following software can be installed to provide git services on your own site:
- Gitweb is distributed with git.
- cgit is a fast CGI web interface written in C.
- gitolite or gitosis may be used for repository hosting and access control on your own domain.
- Gogs, a self-hosted Git service written in Go.
- Indefero is a clone of https://code.google.com.
- Redmine is a project management application.
- Depending on your goals, git may be able to handle what you want without any additional interfaces or tools. See http://stackoverflow.com/a/10888536 for some information on that.
- Much more listed at https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools.
Silos Running Open Source Software
You can use their silo or host it yourself with their open source software:
- Gitorious provides git and collaboration software.
- GitLab is a complete git hosting solution which provides an interface similar to GitHub.
- http://repo.or.cz provides git repository hosting using girocco.
Examples
IndieWeb implementations of git hosting on your own domain:
- rascul uses cgit and gitolite for http://git.rascul.io.
- cweiske uses gitweb for http://git.cweiske.de/
Silos
POSSE
Here are some methods one might use to publish on their own site (host the repo on your site) and syndicate elsewhere (push to GitHub):
- Simplest method is to add the silo (GitHub) as a separate repo and push to it when you're ready:
git remote add github git@github.com:user/repo
git push github
Indieweb examples
- User:cweiske.de publishes source code on http://git.cweiske.de/ and mirrors them to github
- http://git.cweiske.de/grauphel.git/ (original) and https://github.com/cweiske/grauphel/ (mirror)
Documentation
There is plenty of good documentation about Git. Here's a few links to get started:
- Official Git reference manual which is a collection of the Git man pages formatted in HTML.
- Pro Git is an open source book available for free online or for sale from Amazon for a hard copy.
- Git Wiki hosted by https://kernel.org.
- Git Cheatsheet