git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Help with rebase after cvsimport

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 26, 2010, 09:17 UTC
Message-ID
<4BAC7BAC.7030507@drmicha.warpmail.net>
In-Reply-To
<bcd06dea1003251037j492bfbbcx2f99ad5046169f2@mail.gmail.com>
Brice Ruth venit, vidit, dixit 25.03.2010 18:37:
Show 10 quoted lines
> Posted this to #git but it seemed like everyone was asleep (or clueless)
> 
> [11:22] <Brice> Good morning - I have a quick question on using git
> rebase with git cvsimport - I'm trying to eliminate the duplicate 'cvs
> import' commit created when the cvs import is merged in - I'm just not
> sure what 'rebase' I need to do after a git cvsimport. Help?
> [11:22] <Brice> I'm on master when I do cvsimport
> [11:23] <Brice> cvsimport is run with -r cvs
> [11:23] <Brice> so, am I in the right ballpark thinking I need to git
> rebase cvs?
You have basically 2 options, see, e.g., the last paragraphs of
http://grubix.blogspot.com/2009/11/git-over-cvs.html
It seems you want to go with 1. In that case you need to
git rebase cvs/master master

(you can leave out the second argument if you are on master). Note that by doing that you basically discard your version of commits which made the git-cvs-git roundtrip (committed in git, cvsexported to cvs, cvsimported to git). That's why I use approach 2 mentioned there, but it depends certainly on your usage scenario, whether cvs is the central/authoritative repo on which you work with git, or the other way round.

Cheers, Michael

Previous: Brice RuthNext: Michael J Gruber
Message 2 of 3 in “Help with rebase after cvsimport”
  1. Brice RuthMar 25, 2010
  2. Michael J GruberMar 26, 2010
  3. Michael J GruberMar 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.