从一台机器到另一台机器的Git存储库 [英] Git repository from one machine to another

查看:111
本文介绍了从一台机器到另一台机器的Git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个git仓库,我在一个点上拉,而这个仓库驻留在服务器上。我无法访问我从中取得的原始存储库。如何从现有的服务器获取代码到另一台计算机?



编辑1:
所以这里是它的样子:




  • 电脑A:我最初签出的git存储库。
  • 计算机B:我已将代码签出的共享服务器。

  • 计算机C:本地笔记本电脑。



我可以在不使用git的情况下简单复制该目录,或者可以使用git克隆B to C?

解决方案

您可以从网络位置拉出或将整个目录(包含.git文件夹)另一台电脑。

So I have a git repository that i pulled at one point and that repository resides on a server. I don't have access to the original repository that I pulled it from. How do i get the code from the existing server to another computer?

EDIT 1: So here's what it looks like:

  • COMPUTER A: The git repository that I originally checked out from. I don't have access to this anymore.
  • COMPUTER B: A shared server that I have the code checked out on.
  • COMPUTER C: A Local laptop.

Can i just do a simple copy of that directory without using git, or can I use git to clone if from B to C?

解决方案

You can either pull from the network location or copy the entire directory(containing .git folder) accross to the other computer.

这篇关于从一台机器到另一台机器的Git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆