简体   繁体   中英

Git remote ssh url

I'm trying to get git up running on a Windows server.

I have installed winssh and git on the server and now I wanted to test if everything is nice and cool. But it ain't.

I have the following url in the config file:

username@domain:GitRepo/QRCode.git

But I get the following error when I try to push:

does not appear to be a repository

I've created the repo like this:

mkdir QRCode.git
cd QRCode.git
git --bare init

And I can see all the git stuff is there at: "C:\\GitRepo\\QRCode.git"

I have also tried to change the URL to:

username@domain:c/GitRepo/QRCode.git

without any luck.

Have you tried using ssh://username@domain:... ? I'm pretty sure you need to specify the initial scheme ssh:// for the URI, otherwise git doesn't know how to access it.

  1. Forget for some time about Git-specific issues
  2. Get, debug and fine-tune pure SSH-login to the box
  3. When you get interactive SSH-session on the box - detect reached $HOME, relation to path to repos and correlation to URI - without it you'll do NOTHING

Use Brain, not ass!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM