TortoiseGit connects to remote git repo (not github)

I have a git branch on my production server, which is centos. I am trying to connect to it from TortoiseGit on my Windows computer, but it does not seem to work.

I install msysgit, TortoiseGit and already have putty. after installation, I created a folder on the desktop, right-clicked, then clicked git Clone ..., placed the name and domain of the remote server in the url field ( username@domain.com ), then the directory on the desktop in the directory field. when i click ok it shows:

git.exe clone -v "username@domain.com" "C:\.......testdir\domain.com"
fatal: 'username@domain.com'does not appear to be a git repository` 
Initialized empty Git repository in C:\.......testdir\domain.com\.git\ 
fatal: The remote end hung up unexpectedly

I tried only with the domain, username @ip_address, ip_address, domain.com/public_html/.git and many other options, but it just doesn't work.

Am I doing something wrong here?

+3
source share
2 answers

git.exe clone -v username@domain.com : full_path_to_dot_git_directory "C: ....... testdir \ domain.com"

you must tell git exactly where the git repository drives exist on centos servers. Assuming you are using ssh for the protocol.

If you prefer to use http instead, you need to set up a web server on your server that serves the .git directory and point to the http://domain.com/path/to/dot/git/directory that you defined in your server.

+1
source

I suspect that the path you indicated on the command is incorrect. Try:

git clone -v "username@domain.com/full/path/to/public_html" "C:\...\testdir\domain.com"
0

Source: https://habr.com/ru/post/1722072/


All Articles