background preloader

Github

Facebook Twitter

Diff

Submodules. Scie.nti.st » Hosting Git repositories, The Easy (and Secure) Way. Update (12-12-2010): For additional features not present in gitosis, check out gitolite. Update (08-10-2008): For topics not covered here, I encourage everyone to read the gitosis README, bundled with the distribution. There is also an example.conf configuration file that illustrates more features than I have covered here.

I have been asked more and more these days, “How do I host a Git repository?” Usually it is assumed that some access control beyond simply read-only is involved (some users have commit rights). With access control comes issues of security, and that’s a whole other bag of cats. This post is about presenting an answer to this question, without the fuss. The rest of this article will be a tutorial showing you how to host and manage Git repositories with access control, easily and safely.

Assumptions: I take my examples from a Ubuntu Linux server. Enough talk, let’s get down and dirty. Install gitosis Notice that gitosis is extremely light-weight. Next, install it like so: or. Bryce Kerley - Migrating Github Projects to HTTPS. Visionmedia's git-extras at master - GitHub. 25 Tips for Intermediate Git Users : Andy Jeffries : Ruby on Rails, MySQL and jQuery Developer. I’ve been using git for about 18 months now and thought I knew it pretty well. Then we had Scott Chacon from GitHub over to do some training at LVS, a supplier/developer of betting/gaming software (where contracted until 2013) and I learnt a ton in the first day.

As someone who’s always felt fairly comfortable in Git, I thought sharing some of the nuggets I learnt with the community might help someone to find an answer without needing to do lots of research. 1. First Steps After Install After installing Git, the first thing you should do is configure your name and email, as every commit will have these details: $ git config --global user.name "Some One" $ git config --global user.email "someone@gmail.com" 2. Everything stored in git is in a file. From there branches and tags are simply files containing (basically) a SHA-1 hash which points to the commit. You may have heard references to the HEAD. 3. 4. By now I’m sure you have had a merge conflict and had to resolve it. 5. 6. 7. 8. 9. 10. Getting Started with Git and GitHub on Windows - Kyle Cordes. (Update: I have a new, related post about the Best Git GUIs for Windows.) I’ve been attracted to, and trying out, various distributed source control tools for the last two years, and have come to the conclusion that the most likely “winner” is Git.

Git does a great many things right, good progress is being made in the few areas it is weak, and it has rapidly growing popularity. There are many web sites with extensive information about using Git, learning Git, Git integration, and more. For new Oasis Digital projects, we will generally Git rather than SVN for source control. Here are instructions I wrote to help our teams get started. (For a general introduction to Git, consider this video at GitHub.) GitHub Although Git is a fully distributed source control system, it is very convenient to have a set of robust, central repositories. Github offers a useful set of online features to supplement what Git has built in and available locally. Work Flow. Bl.ogtastic: How Can: Sharing Your Codes to the Git Hubs? August 2nd, 2008 by rickbradley These days it seems that everyone is on the github tip – cloning like a shitty star wars prequel, forking and pulling like a lobster banquet.

With github’s success have come a few growing pains – GFS is evidently a rude ho, which means that sometimes you can’t always just take the bus and get there, metaphorically speaking. Since git doesn’t rely on a centralized repository, github occasionally going pensive like a French actress shouldn’t really cramp one’s style as far as development is concerned. Just commit locally, gitjour with your friends, and when github is back up, git push github master. Badda bing. It could conceivably be a bit of a headache if you’re hoping to deploy servers with capistrano or vlad and you’re relying on one single service to be up whenever you want to deploy.

So let’s talk about how OGC rolls. First off: ass pain. So we made a number of changes. Initial Setup Set up gitosis on this “internal” machine. Per-project Setup.