I'm curious about how you do this. What I have always done in the past is create a local working directory with some files in it (like README). I then do a "git init", "git add .", and "git commit -m 'initial setup' ". I then go to my "server", which is really a NAS box on my LAN, and do a "git --bare init" in a new subdirectory for the new project. I go back to my working directory and do a "git remote add ... " to add the name of the "server" and the appropriate path. Lastly, I do a "git push --all" to push the current commit out to the "server" as the "production copy". I then continue working in the working directory, doing a "git push" when I get to some reasonable "checkpoint" or "release point".
Is there a better way? On Tuesday, November 20, 2012 1:17:44 AM UTC-6, William Mizuta wrote: > > Do you have a commit on your bare repository? The message "Initialized > empty Git repository in what/ever/.git/" indicates that your bare > repository doesn't have a commit yet. > > > William Seiti Mizuta > @williammizuta > Desenvolvedor da Caelum > > > > On Mon, Nov 19, 2012 at 6:35 PM, John McKown > <[email protected]<javascript:> > > wrote: > >> You might want to give an example of the git clone command you do on the >> system that works, and then also the git clone command you do on the system >> which doesn't work. >> >> I do something similar. On the local machine I do: >> >> git clone /SmartStor1/Volume1/PUBLIC/git/project.git >> >> on the remote machine, I do: >> >> git clone ssh:user@machine:/SmartStor1/Volume1/PUBLIC/git/project.git >> >> In both cases, I end up with the proper project working directory. Well, >> once I actually do a "git push --all" from my pre-existing local working >> directory (initialized with "git init" and set to the proper distribution >> repository with "git remote add") to get some initial content into the >> repository. >> >> >> On Monday, November 19, 2012 2:00:53 PM UTC-6, Javier Garcia wrote: >>> >>> Hi, >>> >>> I have created a git bare repository in a remote machine. I don't >>> problems to clone it to my local machine, but when I try to clone it any >>> part of the remote machine it says: >>> >>> Initialized empty Git repository in what/ever/.git/ >>> >>> so it doesn't clone anything. It just creates the typical folders when >>> init a git repo (branches/, config/,...). >>> >>> Any idea? >>> >>> >>> -- >> >> >> > > --
