【问题标题】:How can I bring a project on a Linux server to the local computer?如何将 Linux 服务器上的项目带到本地计算机?
【发布时间】:2022-01-23 11:52:07
【问题描述】:

我有一个在 linux - ubuntu 服务器上运行的项目。
我用 git 将这个项目克隆到服务器上。

我对服务器上的项目做了很多改动。

我需要在本地 PC 上获取这个新版本。
我该怎么做?

【问题讨论】:

    标签: linux git


    【解决方案1】:

    如果您可以通过 SSH 访问该 Linux 服务器,则可以使用 SSH URL,例如:

    # on PC
    git clone remoteUser@remoteServer:/path/to/repo
    

    假设您已将 SSH 公钥发布到远程服务器 ~remoteUser/.ssh/authorized_keys

    【讨论】:

    • 我需要输入您的远程服务器IP地址或别名吗? ubuntu@ip-xx-xx-xx-xx 它的名字类似于
    • @utkumutlu 理想情况下是 FQDN (fully qualified name)。如果不可能,IP。但无论如何,您需要remoteUser@ 才能连接到正确的远程用户。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-02-15
    • 2016-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-10
    • 2017-03-28
    相关资源
    最近更新 更多