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

Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-)

From
JWJeff Whiteside <jeff.m.whiteside@gmail.com>
Date
Dec 30, 2008, 18:35 UTC
Message-ID
<3ab397d0812301035w3dcd872fkae9509629a0ed7de@mail.gmail.com>
In-Reply-To
<gjdmm6$9oj$4@ger.gmane.org>
> commit -a detects that files have been deleted, and takes them out of the index !
> could also have used $ git rm <specific files> and then $ git commit ..

hey! i like your changes! the post is pretty polished now. the only thing else i would change (srysry), is the above. "-a detects that files have been deleted" -> heh, not true. you don't need -a here; it does something else.

okay i just recreated your repo and did the same thing. with your syntax "git checkout versionA ." i got the same result, and i'm not sure why, but i think it was because of the detached head.

good news, use "git checkout versionA", not "git checkout versionA ." (so, use it wihtout the dot), and you should be back in working order.

the other (good?) news is that you probably _do_ want to be using git reset --hard in your case, because you're trying to build up a history from some project, so you do want to erase some faulty commits after you bodge something or miss some files.

the bad news is that my opinion is that you should probably move on with your life, because my own past tells me that you'll never actually use those old project versions, hahah :p

Previous: ZorbaNext: Zorba
Message 11 of 21 in “for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-)”
  1. ZorbaDec 27, 2008
  2. ZorbaDec 28, 2008
  3. Jeff WhitesideDec 29, 2008
  4. ZorbaDec 30, 2008
  5. Jeff WhitesideDec 30, 2008
  6. ZorbaDec 30, 2008
  7. Sitaram ChamartyDec 30, 2008
  8. ZorbaDec 30, 2008
  9. ZorbaDec 30, 2008
  10. ZorbaDec 30, 2008
  11. Jeff WhitesideDec 30, 2008
  12. ZorbaDec 30, 2008
  13. Jeff WhitesideDec 30, 2008
  14. Daniel BarkalowDec 30, 2008
  15. ZorbaDec 31, 2008
  16. ZorbaDec 30, 2008
  17. Boyd Stephen Smith Jr.Dec 30, 2008
  18. Boyd Stephen Smith Jr.Dec 30, 2008
  19. Boyd Stephen Smith Jr.Dec 30, 2008
  20. Sitaram ChamartyDec 31, 2008
  21. Daniel BarkalowDec 30, 2008

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.