版权声明:本文为博主在学习过程给自己记录,也让给朋友们少走点弯路。手动码字,义务整理,不喜勿喷。 https://blog.csdn.net/pratise/article/details/88784161
文章目录
SVN仓库转GIT仓库
git svn clone 'svn地址' projectname
cd projectname
清空原有的远程仓库
git remote rm origin
添加服务器git仓库
git remote add origin [email protected]:root/ifarm_backend_tj_admin.git
更新git仓库代码到本地合并
git pull origin master
如果报错git fatal: refusing to merge unrelated histories
原因是在本地的文件夹名称,与远程仓库名称不一样,
解决方案:
git pull origin master --allow-unrelated-histories
提交代码到git仓库
git push -u origin master