从共享主机 bluehost 获取 git 存储库

Get git repository from shared host bluehost

我已经安装了 git 的共享主机,我在某个目录上创建了存储库并对文件进行了一些更改并提交。
现在我需要在我的计算机上取回对本地版本的更改。

问题是我无法使用远程命令获取存储库路径。

我用过:

git init

创建存储库。

命令:

git config --get remote.origin.url

returns空白

而且我不能使用:

git clone

路径错误

这是我在生活主机上的配置文件

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true

我应该使用什么命令在我的本地工作站上克隆远程 Bluehost 存储库?

如果你有 enabled ssh access to your Bluehost server, the git clone command would be (see ssh connection):

git clone username@yourserver:path/to/repo.git

替换:

  • username 通过您在 Bluehost 上的用户名,
  • yourserver 由 Bluehost 服务器 fqn(完全限定名称)
  • path/to/repo.git你家下repo的相对路径:/home/username/path/to/repo.git