I am a fan of using GitHub as my project file repository. But it interest me more if I am able to create a repository on this computer on a different directory path. Then clone that create repository on my new working directory.
I was planning to make a GitHub locally. I've been searching about this and many return that I should use gitolite and many more instead. The problem I am using Windows and I want to do all the steps using command line.
What command lines should I enter to create a repository on a different directory other than the working directory and be able to clone that repository to other terminals within the local network.
LINKING TERMINAL to Windows Host
I have created a repository directory pathed to Users\username\GIT\project.git
.
I am trying to link my terminal using the command line git clone file://{IPv4 server address}/Users/username/GIT/project.git
returns
fatal: '/{IPv4 server address}/Users/username/GIT/project.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
How can I resolve this? I my host is running on Windows 7 and my connecting terminal(s) will be using Ubuntu 12.04 LTS and MacOS Mavericks.
UPDATE TRACK
Maybe you're asking simple way to create git repo and local clone ?
git init --bare
git clone --local /path/your/local/repo/
For local network, windows share or other file share may work.
But, the simple way just work, not best or suitable way. there aren't pull request, issue track, privilege control feature on GitHub. For manage git commit or other complicated work, you need a manage system, such as gitolite, gerrit, some may not work on windows system.
If you only need a free private repo, you an use bitbucket.
Clone from windows share:
git clone file:////{IPv4 server address}/share_name/path_to_your_.git_dir
On host computer, you must share repo dir with a 'share_name', eg: parent dir of repo.git
See: