I have a Windows 10 machine running that I would like to host a git repo on. OpenSSH is running and I am able to SSH into the machine via Powershell, so it is connectable.
I created a new git on that machine in a folder named Test via
git init --shared --bare
I'm now trying to clone using Sublime Merge with the source URL like so:
ssh://USER@IP:/Test
However, after I put in my password, I get two errors:
fatal: "/Test" does not appear to be a git repository
fatal: Could not read from remote repository
I've tried googling with both issues but have not gotten anything that has helped. Is anyone able to help?
Edit: I can clone, commit, and push locally on the remote machine, so it definitely is a git repo.
Edit #2: FIXED. Followed this guide on how to point directly to a git folder by forcing the repo to use powershell (very bottom) https://github.com/PowerShell/Win32-OpenSSH/wiki/Setting-up-a-Git-server-on-Windows-using-Git-for-Windows-and-Win32_OpenSSH
**Note that git clone user@domain@servermachine:C:/test/myrepo.git does not work due to known issue. Work around it to set powershell as default Shell in registry. Or by following steps when cmd is default shell:
cd c:\mygitrepros # initialize a local repo folder git init mylocalrepo cd mylocalrepo # add the remote repro git remote add origin user@domain@servermachine:C:/test/myrepo.git # work around the known issue by launching powershell to run the git commands git config --local remote.origin.uploadpack "powershell git-upload-pack" git config --local remote.origin.receivepack "powershell git-receive-pack"
git fetch origin