Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
你能通过另一台电脑访问git remote吗_Git - Fatal编程技术网

你能通过另一台电脑访问git remote吗

你能通过另一台电脑访问git remote吗,git,Git,我有3台电脑A、B和C。A和C与B相连,但彼此不相连。C有git服务器(远程),我想使用C的push-and-Pull操作系统。这三个都是Linux。您可以将git设置为通过pc访问远程设备吗?您可以使用SSH从a访问B计算机 您可以通过以下方式访问B计算机: 嘘你的_user@b_pc_ip_address 然后,您可以使用B pc中的Vim editor进行更改,除了提交并推送到C之外,还可以使用scp将文件从计算机A传输到计算机B 如果您使用VSCode,还可以使用ssh将VSCode从计

我有3台电脑A、B和C。A和C与B相连,但彼此不相连。C有git服务器(远程),我想使用C的push-and-Pull操作系统。这三个都是Linux。您可以将git设置为通过pc访问远程设备吗?

您可以使用SSH从a访问B计算机

您可以通过以下方式访问B计算机:

嘘你的_user@b_pc_ip_address

然后,您可以使用B pc中的Vim editor进行更改,除了提交并推送到C之外,还可以使用scp将文件从计算机A传输到计算机B

如果您使用VSCode,还可以使用ssh将VSCode从计算机A连接到计算机B,然后在计算机B中推送到C

要了解如何为此使用VSCode,请检查: