I
I
IFK2014-06-25 15:42:33
git
IFK, 2014-06-25 15:42:33

How to download a clone of a GIT repository via TortoiseGit or command line?

Given:

Server with GIT: 192.168.1.5
There is a directory with GIT on my computer: c:\Git3\.git\

I log in to the server: ssh [email protected]
I go to the project directory: cd site I
initialize the repository: git init
GIT gives the address: /home/www/hosting/site/.git/
In this directory /home/www/hosting/site/ are the internals of the site that I want to download to my computer in this directory: c:\Git3\
I'm trying to do it with TortoiseGit, I'm trying to do git sinc:
In the Remote URL I drive: [email protected]/home/www/hosting/ site/.git/
SSH keys are c:\Users\User\.ssh\
Also, just in case, I put Putty keys there c:\Users\User\.ssh\Putty\
I press Pull: Issues
:
git.exe pull -v --progress  "[email protected]/home/www/hosting/site/.git/"

fatal: '[email protected]/home/www/hosting/site/.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.

What am I doing wrong? Already tried to change the path for everyone, but gives the same error.
And how can I download the repository via the WINGW32 command line?
I googled various examples, but nothing worked, for example, git clone . file:////c:\\Git3

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex Kheben, 2014-06-25
@IFK

Here ([email protected]/home/www/hosting/site/.git/) there should be a path to a folder with the prefix ".git" at the end with a repository for sharing.
The rest is in the comments below ;)

A
Alexey, 2014-06-25
@Alexious_sh

The address should ideally be:
[email protected]:/home/www/hosting/site

R
red_led, 2014-06-25
@red_led

It seems you forgot to specify the protocol, try this:"ssh://[email protected]:/home/www/hosting/site"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question