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

Re: How to query the version of a file?

From
Pascal Obry <pascal@obry.net>
Date
Sep 28, 2010, 11:26 UTC
Message-ID
<AANLkTi=pTdLA=KerZnNyfWZdWJNHE5xFWarzHQpBpDu_@mail.gmail.com>
In-Reply-To
<1285670986056-5578850.post@n2.nabble.com>
On Tue, Sep 28, 2010 at 12:49 PM, sandy2010 <sandeeptt@yahoo.com> wrote:
> I do not see the reply to this thread. I'm unable to find how to find the
> version of a checked out file? Also, how do I view an older version?
No response probably because there is no notion of version of a file in Git.
Each commit is uniquely identified (SHA-1). A file is part of a commit.

I would recommend to read some Git tutorials, books that can be found on the Web. See Git wiki, or the online Pro Git book:

   http://progit.org/book/
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Previous: Michael J Gruber
Message 5 of 5 in “How to query the version of a file?”
  1. Edmond HalleyAug 25, 2010
  2. Todd A. JacobsAug 25, 2010
  3. sandy2010Sep 28, 2010
  4. Michael J GruberSep 28, 2010
  5. Pascal ObrySep 28, 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.