Git Server Setup On Windows - Questions

211 views
Skip to first unread message

Ricky Thakkar

unread,
Feb 19, 2020, 4:13:55 AM2/19/20
to git-for-windows
Hello Team,

Good morning.

I have a question about the setup of git server on windows server 2016.

I have installed git and created a bare repository on F drive.
Installed OpenSSH on server and generated public/private keys for a test user.

Now when I go to another server/machine and try to clone the git repository by using below command in Git Bash: -

$git clone ssh:://TestGitUser@<ip-address-of-git-server>/:/F/repo/temp/GitRepo.git

It asks for user password - I enter the password.
But later I get below message.

fatal: ''/:/F/repo/temp/ GitRepo.git'' 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.

Questions:-
1) How to provide the git repo path in the above command? My git repo is on F drive.
2) If it is asking for password - does it mean SSH keys are working correctly?
3) If there is a detailed document on configuring git on windows - please provide it.


Answer to this would be highly appreciated.

Philip Oakley

unread,
Feb 19, 2020, 10:48:18 AM2/19/20
to git-for-windows
Do check how you are representing the F: drive path. That "/F/:/ " doesn't look right to me, but that's just a first impression.

I've also seen other discussions where the colon (:) is important for username:password and similar 'let-me-in' parameters...

P.

Ricky Thakkar

unread,
Feb 19, 2020, 11:00:27 AM2/19/20
to git-for-windows
Hello Philip,

Thank You for the reply.

I have tried multiple combinations as below:-
$git clone ssh:://TestGitUser@<ip-address-of-git-server>/F/repo/temp/GitRepo.git
$git clone ssh:://TestGitUser@<ip-address-of-git-server>/:F/repo/temp/GitRepo.git
$git clone ssh:://TestGitUser@<ip-address-of-git-server>/F:/repo/temp/GitRepo.git
$git clone ssh:://TestGitUser@<ip-address-of-git-server>/~/F/repo/temp/GitRepo.git

But all of them resulting in the same below message: -

fatal: ''/:/F/repo/temp/ GitRepo.git'' 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.

Can you please let know the correct way of accessing the repo in a particular drive?
Also, my question about setting up git server on windows os. Is this possible? or Linux is a preferred system for git server?

Thanks.

Johannes Schindelin

unread,
Feb 20, 2020, 8:21:33 AM2/20/20
to Ricky Thakkar, git-for-windows
Hi Ricky,

On Wed, 19 Feb 2020, Ricky Thakkar wrote:

> I have tried multiple combinations as below:-
> *$git clone
> ssh:://TestGitUser@<ip-address-of-git-server>/F/repo/temp/GitRepo.git*

Are you sure about the double colon after the `ssh`? I would have thought
that
`ssh://TestGitUser@<ip-address-of-git-server>/F:/repo/temp/GitRepo.git`
would be the correct way to spell it.

Also, you might find that setting `GIT_TRACE=1` might shed some light into
the issue.

Ciao,
Johannes

Ricky Thakkar

unread,
Feb 20, 2020, 9:56:13 AM2/20/20
to git-for-windows
Hello Johannes,

Good afternoon. Thank You for the reply.

I made a mistake in my previous post.

Correct commands as below (Single colon): -
$git clone ssh://TestGitUser@<ip-address-of-git-server>/F/repo/temp/GitRepo.git
$git clone ssh://TestGitUser@<ip-address-of-git-server>/:F/repo/temp/GitRepo.git
$git clone ssh://TestGitUser@<ip-address-of-git-server>/F:/repo/temp/GitRepo.git
$git clone ssh://TestGitUser@<ip-address-of-git-server>/~/F/repo/temp/GitRepo.git

These commands gives the same result that repository not found.

Also, I tried your given command as well:-
$git clone ssh://TestGitUser@<ip-address-of-git-server>/F:/repo/temp/GitRepo.git

It is similar to my third mentioned command. But it does not wok too.
I get the same message :-

fatal: ''/F:/repo/temp/GitRepo.git'' 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 am really stuck in this thing. Any further help will be highly appreciated.

Tear Blood

unread,
Mar 23, 2020, 5:10:27 AM3/23/20
to git-for-windows
Cloning into 'Test'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I got error with http and username password

Tear Blood

unread,
Mar 23, 2020, 5:34:19 AM3/23/20
to git-for-windows
I try to make .gitconfig
[core]
packedGitLimit = 256m
packedGitWindowSize = 32m

[pack]
deltaCacheSize = 256m
windowMemory   = 256m
[credential]
    helper = wincred

Vào 16:10:27 UTC+7 Thứ Hai, ngày 23 tháng 3 năm 2020, Tear Blood đã viết:

Philip Oakley

unread,
Mar 23, 2020, 6:21:55 AM3/23/20
to git-for-windows
Can you try using the https version of the URL. The 's' version of the http protocol has extra capabilities that the old dumb version does not. Not sure where the address links back to...

Also, please start a new thread if you have a different problem to the original one. Your quest doesn't feel to be the same as "Git Server Setup On Windows".
Reply all
Reply to author
Forward
0 new messages