Setting up a GIT server
I wanted to share development trees with some friends and of course needed a GIT server! Using GITHUB was not an option because I need a private area so I decided to create my own GIT server on EC2.
Installing the server
Install the GIT package
Create a user account to host the projects files.
Create the ssh key that will be used by gitosis to manage the git repository
Initialize the GIT repository
Activate gitosis post-update hook
Gitosis configuration is done using git! So to configure gitosis, you need to checkout the gitosis-admin repository with git. There is a pitfall: git will try to connect to the repository using ssh and you need to tell ssh to use the private key we created previously.
blog comments powered by Disqus