我怎样才能恢复我的 git-daemon 存储库
我安装的 Gitorious 已经过时了,现在很明显它不会再回来了。我想从存储库中恢复存储库(主要是 wiki 存储库)。我不想再次重复设置 Gitorious 的漫长而痛苦的过程,只是为了从中恢复一些 wiki...事实上,我想尽快清理旧的安装(将其删除)。不过,运行起来的时候还是很厉害的!
我仍然拥有 gitorious 数据库,因此我知道我想要哪些 .git 文件以及在哪里可以找到它们。
我试图设置 git-daemon (我使用的是 Linux (ubuntu) 设置),但我运气不佳。我希望也许我可以将“foo.git”文件复制到某个地方并克隆它。
目前我的 .git 文件位于用户 git 的主文件夹中。虽然移动它们没问题,但我不知道该怎么做。
我有 git 守护进程正在运行,但如果我尝试通过“localhost”连接,它会“意外挂起”,所有存储库中也有我的“export-ok”文件。我可以通过 LAN 连接并通过 ssh 克隆任何其他 git 初始化的目录,这对我有帮助吗?
我可以将 foo.git (更像是 f13f9ed412591ce72f7b3cb793605e93ce.git )文件复制到 git 初始化的存储库并在那里使用它吗?有没有可以用来扩展 .git 文件的 git 工具? <-- 我确信 Git 会是这个工具,对吧?
I had a Gitorious install that got old and it is clear now that it is not coming back. I want to recover the repos (mainly the wiki repos) from the repository. I do not want to repeat the long and painful process of setting up Gitorious again, just to get some wiki back out of it...in fact I'd like to clean up the old install soon (remove it). Although, when it was running it was awesome!
I still have the database for gitorious, so I know which .git files I want and where to find them.
I was attempting to setup git-daemon (I'm on a Linux (ubuntu) setup), but I am not having much luck. I was hopeful that maybe I could just copy the 'foo.git' file somewhere and clone it.
Currently my .git files are in user git's home folder. No problem moving them though, but I'm not sure how to go about this.
I have git daemon running, but it 'hangs up unexpectedly' if I try to connect via 'localhost', all the repos also have my 'export-ok' file in them too. I can connect accross my LAN and clone any other git initialized directory via ssh, could that help me?
Can I just copy the foo.git (more like a f13f9ed412591ce72f7b3cb793605e93ce.git) file to maybe a git initialized repo and work with it there? Is there a git tool that I could use to expand the .git file? <-- I'm sure Git would be the tool right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.git
是一个文件夹而不是文件,并且 git 存储库是轻量级的,因为它只是文件和文件夹。您可以将存储库复制到您想要的任何位置。既然您说了
localhost
,如果您愿意,您甚至可以使用git clone /path/to/repo.git
克隆存储库并处理克隆的存储库。您不需要运行守护程序或其他任何东西。The
.git
is a folder and not a file and git repos are lightweight in that it is just files and folders. You can copy your repo to wherever you want.Since you said
localhost
, if you want you can even clone the repos withgit clone /path/to/repo.git
and work on the cloned repo. You do not need the daemon or anything else to be running.