<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>http://wiki.nosdigitais.teia.org.br/index.php?action=history&amp;feed=atom&amp;title=GitCVS</id>
	<title>GitCVS - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nosdigitais.teia.org.br/index.php?action=history&amp;feed=atom&amp;title=GitCVS"/>
	<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;action=history"/>
	<updated>2026-04-20T22:14:10Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6222&amp;oldid=prev</id>
		<title>V1z em 16h37min de 20 de julho de 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6222&amp;oldid=prev"/>
		<updated>2012-07-20T16:37:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 13h37min de 20 de julho de 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ver &lt;/del&gt;[[Git]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;See also &lt;/ins&gt;[[Git]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, [[GitSvn]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Background and Motivation ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Background and Motivation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>V1z</name></author>
	</entry>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6221&amp;oldid=prev</id>
		<title>V1z em 16h33min de 20 de julho de 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6221&amp;oldid=prev"/>
		<updated>2012-07-20T16:33:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 13h33min de 20 de julho de 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ver [[Git]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Background and Motivation ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Background and Motivation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Many groups have local CVS repositories with their private code, and haven't yet migrated to Subversion or a newer version control system.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Many groups have local CVS repositories with their private code, and haven't yet migrated to Subversion or a newer version control system.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>V1z</name></author>
	</entry>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6219&amp;oldid=prev</id>
		<title>V1z: import from https://sourceforge.net/apps/trac/vxl/wiki/GitCvs</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=GitCVS&amp;diff=6219&amp;oldid=prev"/>
		<updated>2012-07-20T16:31:22Z</updated>

		<summary type="html">&lt;p&gt;import from https://sourceforge.net/apps/trac/vxl/wiki/GitCvs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Background and Motivation ==&lt;br /&gt;
Many groups have local CVS repositories with their private code, and haven't yet migrated to Subversion or a newer version control system.&lt;br /&gt;
This guide describes how to use Git to import the code from these repositories and to commit changes back to them,&lt;br /&gt;
so that you can get the benefits of Git (local history, local commits, branching workflow, independence of the server).&lt;br /&gt;
&lt;br /&gt;
For more detailed background material and other information on Git and VXL, see the wiki page GitSvn.&lt;br /&gt;
&lt;br /&gt;
== CVS import into a local Git repository == &lt;br /&gt;
&lt;br /&gt;
In my group I copied my-lab-vxlsrc (this is a directory with the name of the CVS module of interest) and the CVSROOT dir from /path/to/cvsroot to my local disk. I placed them in a directory, let's call it my-lab-cvsroot.&lt;br /&gt;
&lt;br /&gt;
Create a dir, say, my-lab-git, chdir in there, and do:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  $ git cvsimport -d /path/to/my-lab-cvsroot -r cvs -k -v my-lab-vxlsrc&lt;br /&gt;
&lt;br /&gt;
This takes about 40min.&lt;br /&gt;
&lt;br /&gt;
== Basic configs from inside the newly created git repository ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  git config cvsimport.module lemsvxlsrc&lt;br /&gt;
  git config cvsimport.r cvs&lt;br /&gt;
  git config cvsimport.d :ext:server.yourlab.edu:/path/to/cvsroot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test updating from cvs, now remotely == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  # MAKE SURE YOU'RE IN THE ROOT DIRECTORY OF YOUR GIT REPOSITORY AND IN MASTER&lt;br /&gt;
  $ git cvsimport&lt;br /&gt;
  # MAKE SURE YOU'RE IN THE ROOT DIRECTORY OF YOUR GIT REPOSITORY AND IN MASTER&lt;br /&gt;
&lt;br /&gt;
This takes 1min from East coast to West coast and it fetched changes committed in the&lt;br /&gt;
interim very well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Exporting Changes to CVS ==&lt;br /&gt;
&lt;br /&gt;
Work on a topic branch and create a merge commit on an up-to-date master and&lt;br /&gt;
export that single merge commit to CVS.  This won't work if your merge was a&lt;br /&gt;
fast-forward, so you have to use the --no-ff option when performing the merge. &lt;br /&gt;
&lt;br /&gt;
  $ git config cvsexportcommit.cvsdir /path/to/cvs/checkout&lt;br /&gt;
&lt;br /&gt;
  # on master&lt;br /&gt;
  $ git merge --no-ff --log -m &amp;quot;Optional commit message here&amp;quot; topic/branch/name&lt;br /&gt;
  $ git cvsexportcommit -u -p -c ORIG_HEAD HEAD&lt;br /&gt;
&lt;br /&gt;
== Shortcomings ==&lt;br /&gt;
&lt;br /&gt;
You need to keep a CVS checkout around. Also, you tend not to commit code remotely since it is so easy to commit to your local repository,&lt;br /&gt;
and relatively painful to merge and cvsexportcommit every time. Backups are crucial here.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
 * [http://stackoverflow.com/questions/584522/how-to-export-revision-history-from-mercurial-or-git-to-cvs/584567 Stack Overflow Article]&lt;br /&gt;
&lt;br /&gt;
 * [http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html Complementary Information]&lt;br /&gt;
&lt;br /&gt;
== Questions ==&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to contact Ricardo Fabbri (ricardofabbri at users.sf.net) or the vxl-users list.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lab Macambira]]&lt;/div&gt;</summary>
		<author><name>V1z</name></author>
	</entry>
</feed>