I am using Git as my method of managing source control. Currently I am just using Git on my local machine with a local repository. I have a networked server setup which I would like to configure a repository on. Essentially I want to be able to push to the networked server, thus cutting out the need to use GitHub.
Someone has mentioned that the use of a daemon will be needed so that i can essentially tell Git to push to a repository at an arbitrary URL, for example "MyServer:8443/GitRepository/".
Unfortunately, I am completely lost on how exactly I go about doing this and would greatly appreciate some help.
What OS is your server? It's a lot easier with a linux server.
You can do it as follows (presuming you already have ssh access). I shall call your server sally, and your desktop dan, for convenience.
Connect to your server from your desktop:
then on the server, create somewhere to keep your repos:
Now you have somewhere to keep stuff. Next we will presume you already have a git repo for your project called 'project1.git' on your desktop. You can do the following for each new project:
Still on the server
Then back on the desktop, push your changes to the new repo on the server:
That's it. You can then clone from another machine with
Optional extras:
2 - http: //www.kernel.org/pub/software/scm/git/docs/git-daemon.html
3 - http: //git.or.cz/gitwiki/Gitweb
Just push through SSH; setup your remote as
MyServer:/path/to/gitrepo
and away you go. If you want to provide read-only access to the Internet at large, you can either use HTTP, orgit-daemon
to supportgit://
protocol URLs.I found this link to be the most helpful : Intall Git on Windows Server 2008