简体   繁体   English

Git仓库可以随意移动吗?

[英]Can Git repos be moved indiscriminately?

Say I have a single sub-directory gits containing all my mirrors of various repos and I want to segment them into logical areas. 假设我有一个子目录gits其中包含我的各种存储库的所有镜像,我想将它们划分为逻辑区域。

Is it possible to just move the repo directories to another location, along the lines of: 是否可以按照以下方式将repo目录移动到另一个位置:

gits                     gits          dodgy-gits
 |- python                |- python     |- perl
 |- csharp     --->       |- csharp     |- c++
 |- perl
 |- c++

Or is there anything in the Git metadata that will make this problematic? 还是Git元数据中有什么会导致此问题的?

You can move the repos where you want without any problem. 您可以毫无问题地将仓库移至所需位置。

All the relevant data is contained in the .git subfolder and there are no absolute paths to care about. 所有相关数据都包含在.git子文件夹中,没有绝对的路径要关注。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM