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

Checkout first version of each file?

From
Dario Rodriguez <soft.d4rio@gmail.com>
Date
Nov 8, 2011, 13:58 UTC
Message-ID
<CABLeVKF5P_sWwNX+OR_FX4+SPCN+SovZ2QuMmGGvJ-EskK7=YQ@mail.gmail.com>
Hello,

My "issue" comes with my usage of git at work. I work with lots of applications, each of them part of each system. There are lots of processes and lots of subsystems, so I never clone the entire repo into GIT, since it could be painful and slow. Even if I do so, everyone else is using ClearCase, and their changes cannot be included into my git repo until they "chickin". Sometimes, I must update sources from FTP because the changes are not up to date in ClearCase...

So, I clone every file that I will need to work into GIT, so i can work with these files having a better control (With ClearCase it's a foolish "checkout>>lots of changes>>checkin" flow). But sometimes I don't know how many files I am going to change until I start coding the requisites.

In this cases, there is a situation that I don't know how to handle. If I need to rollback every change made to every file I cannot just checkout the initial commit, cause I've added files after that, and I need their initial versions too.

So, how can I checkout the first version of each file? (I know that GIT tracks contents and not files, but the fact is that I need to keep track on files, it's the real thing I work with)

pd: Sorry about my Argentinian-English (if it sounds so)

Thanks, Dario

Next: Fredrik Gustafsson
Message 1 of 8 in “Checkout first version of each file?”
  1. Dario RodriguezNov 8, 2011
  2. Fredrik GustafssonNov 8, 2011
  3. Dario RodriguezNov 8, 2011
  4. Fredrik GustafssonNov 8, 2011
  5. Dario RodriguezNov 8, 2011
  6. Andreas SchwabNov 8, 2011
  7. Dario RodriguezNov 8, 2011
  8. Junio C HamanoNov 8, 2011

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.