Git questions
Do I need a github account? I have 1 but i need a private repo ann not quite sure why I have to pay if im hosting the files on my server. Rather confusing.
I want to host the files / branches on my server so why the need for a hub account?
I am using Aptana Studio 3 as my working environment. I have git installed on the server (Ubuntu 10.04 / nGinx) Google'd config / setup but to no avail as to actually create a repo for the project. Just basic install process which is where I sit so hoping maybe some answers here might point me in the right direction.
Thanks,
Dave
4 Replies
Here's an alternate tutorial that also might be helpful:
And no, you don't need to have a github account, since you're not using their repository servers.
gitolite
What's the alternative?
mkdir ~/git
cd ~/git
git init --bare your-repository-here.git
Then, you can clone that (bare and initially empty) repository from anywhere else:
git clone your-username@your-server-hostname:git/your-repository-here.git
Keep in mind that every clone of the repository is an independent and fully-functional repository, which means the concept of "server" is somewhat arbitrary. This is much different than how SVN does things, for example. You can use git just fine without a server.
Will give it an attempt and see how it goes.
Last question is where should the git repo be created on the server?
As of now its just me but would like to set it up correct so I do not have to do it again.