TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Svn to git protips

15 点作者 r11t超过 15 年前

2 条评论

kelnos超过 15 年前
"Protips"? Funny. The article is ridiculously light on details. From experience, I've found there's a lot more involved to converting a svn repo to git. After done, there's also something else I consider very important: verifying all the data after it's been moved. A few months ago, we (xfce.org) switched from svn to git. I kept track of what I did and published the scripts I used:<p><a href="http://git.xfce.org/admin/xfce-git-migration" rel="nofollow">http://git.xfce.org/admin/xfce-git-migration</a><p>Some of it is Xfce-specific, but I tried to abstract most of the site-specific stuff into env vars and such, so it should be reasonably adaptable to other sites.
Zev超过 15 年前
This article didn't seem to have anything to do with actually switching to Git; it was just a list of SVN commands without the Git equivilant. It did mention one difference thats worth mentioning:<p><i>Since git doesn't keep empty directories, you can add a .gitkeep file to empty directories that you don't want to go away.</i><p>However, I thought one of Git's selling points was that it didn't add a file to directories?<p>And the site adding a link back to the blog when I went to copy and paste that quote? Eugh.
评论 #859143 未加载
评论 #859158 未加载
评论 #859178 未加载