将Gitlab Wiki导入到新的Gitlab实例中 [英] Importing Gitlab Wiki to new Gitlab instance
问题描述
我知道如何创建一个包文件:
git bundle create wiki.bundle --all
这给了我一个wiki维基的捆绑文件(叫做wiki.bundle),当它打开时,会有许多与维基库相对应的降价文件。当我尝试将其导入到新项目中时,存储库有两种存储库类型。例如,假设新维基被称为新维基;这将在文件系统中产生两个文件:new-wiki.git和new-wiki.wiki.git
以前,我的解决方法是发布git clone和git将降价包拉入我的new-wiki.git文件;然后我检索文件并手动将它们一次导入到wiki中。这可能是非常耗时的,并不是所有的实际操作。
我尝试了与new-wiki.wiki.git相同的操作,但没有任何事情发生。 p>
有没有人遇到这个问题,并找到类似这样的解决方案?我知道我可以让它工作,但是有没有更方便的方法?
似乎解决了我的问题的方法是:
mkdir new-wiki
cd new-wiki
git init
git remote add origin http://gitlab-server-ip/account-name/new-wiki.wiki.git
git pull wiki.bundle
git push -u原产大师
我遇到的问题是没有真正的反馈意味着发生了任何事情。当我进入gitlab仪表板时,它也没有显示任何内容。只有直接进入该项目,我才能看到它是新填充的。希望这对某人有某种帮助。
Trying to deploy a new wiki into gitlab from a previous gitlab server.
I know how to create a bundle file:
git bundle create wiki.bundle --all
This gives me a bundle file of my wiki (called wiki.bundle) and when opened there is a lot of markdown files that correspond to the wiki repository. When I try to import it into the new project there are two repository types for the repository. For example, let's say the new wiki is called "new wiki"; this would yield two files in the filesystem: new-wiki.git and new-wiki.wiki.git
Previously, my work around has been issuing a git clone and git pull of the markdown bundle into my new-wiki.git file; I then retrieve the "files" and manually import them over to the wiki one at a time. This can be very time consuming and not all that practical.
I did try the same operation with the new-wiki.wiki.git but nothing appears to happen.
Has anyone run into this problem and found a resolution for something like this? I know I can get it to work, but is there a more convenient way?
I thought I would just put this down in case it helps anyone.
The method that seemed to solve my problem was:
mkdir new-wiki
cd new-wiki
git init
git remote add origin http://gitlab-server-ip/account-name/new-wiki.wiki.git
git pull wiki.bundle
git push -u origin master
The problem I had was there was no real "feedback" that anything was happening. When I go into the gitlab dashboard it shows nothing either. Only by going directly into the project I can see that it is newly populated. Hope this is of some sort of help to someone.
这篇关于将Gitlab Wiki导入到新的Gitlab实例中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!