svn 迁移 git 完整记录
Todd

先确定有没有安装工具
yum install git-svn

下载下来代码库git svn clone svn://1.1.1.1/name -s
好了之后,记得把 tags 留下来
cp -Rf .git/refs/remotes/tags/* .git/refs/tags/
rm -Rf .git/refs/remotes/tags

cp -Rf .git/refs/remotes/* .git/refs/heads/
rm -Rf .git/refs/remotes
没有就算了

添加远程库
git remote add origin http://me/gitbucket/git/todd/name.git
git push -u origin master
git push origin –all

如果你有 tags 的话还要:
git push –tags

由 Hexo 驱动 & 主题 Keep
本站由 提供部署服务
总字数 74.6k 访客数 访问量