cvs

Migrate project from RCS to git?

佐手、 提交于 2019-11-29 20:46:12
I have a 20-year-old project that I would like to migrate from RCS to git, without losing the history. All web pages suggest that the One True Path is through CVS. But after an hour of Googling and trying different scripts, I have yet to find anything that successfully converts my RCS project tree to CVS. I'm hoping the good people at Stackoverflow will know what actually works, as opposed to what is claimed to work and doesn't. (I searched Stackoverflow using both the native SO search and a Google search, but if there's a helpful answer in the database, I missed it.) UPDATE : The rcs-fast

教你玩转Git-推送到远程仓库

纵然是瞬间 提交于 2019-11-29 18:21:20
Git 是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。Git 与常用的版本控制工具 CVS, Subversion 等不同,它采用了分布式版本库的方式,不必服务器端软件支持。 推送你的新分支与数据到某个远端仓库 命令 : git push [alias] [branch] 以上 命令 将你的 [branch] 分支推送成为 [alias] 远程仓库上的 [branch] 分支,实例如下。 $ touch runoob-test.txt # 添加文件 $ git add runoob-test.txt $ git commit -m "添加到远程" master 69e702d] 添加到远程 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 runoob-test.txt $ git push origin master # 推送到 Github 重新回到我们的 Github 仓库,可以看到文件以及提交上来了: 本文原创地址: https://www.linuxprobe.com/to-remote-repository.html 来源: https://my

How to know if git repository has changes that have not been synchronized with server (origin)?

三世轮回 提交于 2019-11-29 17:34:24
问题 I have a large number of projects setup in Git that were previously managed in CVS. Tortoise CVS as well as Eclipse both made it very easy to see (via icon overlays) if I had made changes to the repository that had not yet been sent to the central server. Is there a convenient way to achieve this with Git? I don't really need the icon overlays -- I just need to know if I have outstanding changes when comparing my branches to those in origin. I don't mind using a script of some kind to query

Recovering files from archive of CVS *,v files

烈酒焚心 提交于 2019-11-29 14:05:56
问题 I trying to recover some old source code (plain text) from a bunch of files that used to be managed with CVS. I have a directory containing all of the source code files in CVS's *,v file format. This looks mostly like the original files, but there are quite a bit of CVS specific header and revision information in there. Is there a simply way to strip out all the CVS stuff and just keep the latest revision of the file? 回答1: Yes, install a CVS client, set environment variable CVSROOT to point

How can I list files in CVS without an initial checkout?

▼魔方 西西 提交于 2019-11-29 10:59:48
问题 How can I list files CVS without an initial checkout? In subversion I can simply do "svn ls http://svn.svn.com" in CVS how can I do this? For example I've got this CVS connection: pserver:anonymous@evocms.cvs.sourceforge.net:/cvsroot/evocms How can I list all files in it? UPDATE: I'm doing this: c:\>set CVSROOT=pserver:anonymous@evocms.cvs.sourceforge.net:/cvsroot/evocms c:\>cvs -list ---> doesn't work, prints out the help screen 回答1: If it's a one-off operation you don't need to set the

CentOS下搭建SVN服务器

妖精的绣舞 提交于 2019-11-29 10:09:03
一,介绍SVN SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。说得简单一点SVN就是用于多个人共同开发同一个项目,共用资源的目的。 ----百度百科 二,安装SV 官网下载: http://subversion.apache.org/packages.html SVN客户端TortoiseSVN : https://tortoisesvn.net/downloads.html 1,yum install subversion安装 [root@localhost conf]# yum install subversion 2,新建一个目录用于存储SVN目录 [root@localhost]mkdir /svn 3,新建一个测试仓库 [root@localhost svn]# svnadmin create /svn/test/ [root@localhost svn]# ll /svn/test/ total 24 drwxr-xr-x. 2 root root 4096 Jul 28 18:12 conf drwxr-sr-x. 6 root root 4096 Jul 28 18:12 db -r--r--r--. 1

Semi-editable Files (eg config files) and version control - best practices?

白昼怎懂夜的黑 提交于 2019-11-29 09:53:17
问题 So, I killed the build today by checking in a config file. It knows where the server is (think SQL server or the like), and I've been working against the server which runs on my box. Normally, or rather, under other circumstances, we'd run against the central server. The daily build, of course, didn't find 'my' server, hence the breakage. Then again, editing the config file to point to the 'normal' server before the checkin, and editing it again after checkin is tendious. I've been tempted to

Source Control - If, Why, How to start? [duplicate]

冷暖自知 提交于 2019-11-29 08:34:28
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: Using Source Control So, although even here on stackoverflow are literally dozens things on version control, i can't find something nice to answer all my questions. If you have anything to say or post a link, please do it here. 1., Do I need to start with version control? While most people agree, that even single developer/programmer should start with version control, nobody (or at least in understandable form)

How to import CVS to git scm?

落爺英雄遲暮 提交于 2019-11-29 08:01:40
In order to import a revision of a CVS module, I am using: /usr/lib/git-core/git-cvsimport -a -i -p r,revisionname -k -v -d :pserver:user@xxx.com:2401/srv/cvs/rootname modulename It works for a while and then I get something like cvsps got an error. How do I determine what the cvsps error is? reza Gave up on this approach and have used cvs2git . The cvs2git is a tool that can be used to migrate CVS repositories to newer version control tools, including git. Sample usage: cvs2git \ --blobfile=cvs2git-tmp/git-blob.dat \ --dumpfile=cvs2git-tmp/git-dump.dat \ --username=cvs2git \ /path/to/cvs/repo

教你玩转Git-分支合并

╄→尐↘猪︶ㄣ 提交于 2019-11-29 07:59:47
Git 是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。Git 与常用的版本控制工具 CVS, Subversion 等不同,它采用了分布式版本库的方式,不必服务器端软件支持。 一旦某分支有了独立内容,你终究会希望将它合并回到你的主分支。 你可以使用以下 命令 将任何分支合并到当前分支中去: git merge $ git branch * master newtest $ ls README test.txt $ git merge newtest Updating 3e92c19..c1501a2 Fast-forward runoob.php | 0 test.txt | 1 - 2 files changed, 1 deletion(-) create mode 100644 runoob.php delete mode 100644 test.txt $ ls README runoob.php 以上实例中我们将 newtest 分支合并到主分支去,test.txt 文件被删除。 合并完后就可以删除分支: $ git branch -d newtest Deleted branch newtest (was c1501a2). 删除后,