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

git-cvsimport and git-checkout problem

From
HKHannu Koivisto <azure@iki.fi>
Date
Dec 26, 2006, 14:13 UTC
Message-ID
<87fyb2wxr0.fsf@trews52.bothi.fi>
Greetings,

I'm learning git and decided to try importing a small CVS module into a git repository (before attempting a really big one). Existence of -i in git-cvsimport would seem to imply that it checkouts by default but it didn't seem to do that. That is, I did "git-cvsimport -d ~/.cvs_root -C module module" and I got a "module" directory that contains ".git" directory but nothing else. And saying "git checkout master" in "module" doesn't seem to do anything.

Finally I realized to try "git-checkout -f master" and that worked. By reading git-checkout(1) I just cannot see why -f was needed in this case or even what it generally does ("re-read of everything" -- um, what everything and why would you explicitly want to re-read that everything?).

I'm using git 1.4.4.3 and cvsps 2.1 (from a git repository recommended by some web page) on Debian GNU/Linux.

-- 
Hannu
Message 1 of 1 in “git-cvsimport and git-checkout problem”
  1. Hannu KoivistoDec 26, 2006

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.