I need to set up a git repository in the production server so I can upload all my commits. So, these are the steps I followed:
Production Server (Windows Server 2008)
- Installed Git
- Created an empty repository at inetpub/wwwroot
- Installed CopSSH
- Created a new user account
- Enabled the user with CopSSH
- Changed the default directory of the new user to the repository address
- Setted environment variables to read Git commands
Development (Windows 7 + Netbeans)
- Installed Git
- Created a repository right where my project is
- Added all files of the project to the repository
Now, I need to upload my dev project to prod. First, I'm checking if the SSH default directory where I'm pointing to is a repository:
$ git ls-remote ssh://user@server/
fatal: '/' does not appear to be a git repository
fatal: Could not read from remote repository
Please make sure you have the correct access rights
and the repository exists.
I tried adding the folder name, ".git", foldername.git, everything, and I get the same error.
Where am I having the issue? Thank you beforehand.
P.S. I already tested the new default directory and it points right to the empty repository in the server, so it's working.
EDIT: I tried this:
$ git ls-remote user@host:.git
user@host's password:
$_
I got no output. Is that okay?