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
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 30, 2008, 19:42 UTC
Message-ID
<alpine.LNX.1.00.0812301348440.19665@iabervon.org>
In-Reply-To
<gj68a0$u56$3@ger.gmane.org>
On Sat, 27 Dec 2008, Zorba wrote:
Show 11 quoted lines
> Here is a little exercise / tutorial / warm-up for someone starting out with 
> Git. If you're anyting like me you may find the tutorials etc. on git.or.cz 
> a bit daunting. I recommend you try this after reading the user manual but 
> before tearing your hair out trying to follow all the examples in the user 
> manual. After you've followed this simple workflow, then go back to the more 
> advanced stuff  in the tutorials and user manuals (like cloning repositories 
> and creating and merging branches).
>
> I created this exercise to try and model our workflow and what we wanted to 
> use git for = tracking a project with multiple files where the filebase 
> might change frequently from one version to the next.

One thing I find unrealistic about this example is that you've got BC.txt and C.txt when you're creating version A, and you've even copied them to the working directory. In real life, you'd almost certainly not create the files until you're preparing the version that includes them, at least if your history is version A, version B, version C. (Now, it's possible that your history is "create a bunch of files", "create version A without BC.txt and C.txt"; in parallel to version A, create version B without AC.txt and C.txt; but that's a different process entirely.)

I think the exercise would come out much more easily if you only created ABC.txt and AC.txt at the beginning, made version A, added BC.txt and removed AC.txt, made version B, created C.txt and recovered AC.txt, and made version C; this is, I believe, what would actually happen.

If you're having trouble with "git commit" putting you in a lousy editor, somebody probably needs to do better packaging. "git commit" (without the -m) should open up the best editor available on your computer, but it doesn't seem to have a good idea about your preferences for editors. Of course, part of the problem is people who don't like that editor rarely use the command line on Windows. Do you have a good editor for Windows? How have you specified it, if so?

	-Daniel
*This .sig left intentionally blank*
Previous: Sitaram Chamarty
Message 21 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.