Use the private key you created on the server to clone your repo from ssh://user@server:port/repopath/repo.git (for some reason, the root is the C: drive)
This allowed me to successfully clone and commit, but I could not push to the bare repo on the server. I kept getting:
git: '/repopath/repo.git' is not a git command. See 'git --help'.
fatal: The remote end hung up unexpectedly
这导致我到 芮的痕迹和溶液,这是创建或添加以下行到。在 客户端 PC 的% 用户配置文件% 路径中使用 gitconfig (C: UserName)。