从SVN到GIT迁移
来源:互联网 发布:家具画图软件 编辑:程序博客网 时间:2024/05/01 10:36
首先使用git svn clone将原有的svn代码checkout出来
# git svn clone http://xxxxx
然后使用git gc,注意,如果不使用这一步骤,在后面git clone时会出现错误:
[frank@maya2 gittest]$ git clonehttp://xxx/xxx.git
Cloning into experience...
Username:
Password:
error: The requested URL returned error: 401 (curl_result = 22, http_code = 401, sha1 = 58e93da8b4c7d388f9dc87337cf04304266eba18)
error: Unable to find 58e93da8b4c7d388f9dc87337cf04304266eba18 underhttp://xxx/xxx.git
Cannot obtain needed commit 58e93da8b4c7d388f9dc87337cf04304266eba18
while processing commit 113710e1c27c42ca20f6fd9d97f998b2e9a201ca.
error: Fetch failed.
在服务器上设置git repository
# git clone --bare /path/to/mygit.git
# git update-server-info
我使用HTTP WebDAV的方式做为git server,用的Fedora,在/etc/httpd/conf.d/下添加文件
<Location /mygitrepository.git>
DAV on
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /path/to/passwdfile
Require valid-user
# </LimitExcept>
</Location>
重新启动httpd,然后在客户端使用命令:
# git clone http://xxx/myrepository.git
如果是在防火墙后面,可能会出现这样的错误:
error: inflate: data stream error (incorrect header check)
error: File 113710e1c27c42ca20f6fd9d97f998b2e9a201ca (http://xxx/xxx.git/objects/11/3710e1c27c42ca20f6fd9d97f998b2e9a201ca) corrupt
换成https,出现其它的错误:
Cloning into experience...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://xxx/xxx.git/info/refs
fatal: HTTP request failed
这个问题不如如何解决?
- 从SVN到GIT迁移
- 从SVN迁移到GIT
- 从 SVN 迁移到 Git
- SVN 迁移到 Git
- svn迁移到Git
- SVN 迁移到GIT
- SVN迁移到git
- svn迁移到git
- 你应该从 SVN 迁移到 Git 吗?
- svn迁移到git实践
- svn迁移到git实践
- SVN到Git的迁移
- 本地svn迁移到git
- SVN如何迁移到Git?
- SVN如何迁移到Git?
- 从CVS迁移到SVN
- 从CVS迁移到SVN
- 从Perforce迁移到Git
- Qt数据库之添加MySQL数据库驱动插件
- 服务器网络模型(3)---工作线程与线程池模型
- chapter 7 UNIX进程的环境
- 算法导论代码 第21章 用于不相交集合的数据结构
- 网络编程(二)
- 从SVN到GIT迁移
- 表示创建一个数组的实例
- 自想一架构设计
- 使用eclipse/ndk-gdb对java/native code联合调试
- 在同一个机器上复制数据库
- +z +Z compiler flag for HP
- How to Build FFmpeg for Android
- 2011年度总结:不甘寂寞的2011
- 试题:组合