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

Re: [PATCH] make 'git add' a first class user friendly interface to the index

From
Nicolas Pitre <nico@cam.org>
Date
Dec 3, 2006, 04:34 UTC
Message-ID
<Pine.LNX.4.64.0612022323330.2630@xanadu.home>
In-Reply-To
<200612020828.57989.alan@chandlerfamily.org.uk>
On Sat, 2 Dec 2006, Alan Chandler wrote:
Show 7 quoted lines
> So I am with you that we need to effective teach
> 
> git add <filename>   #add content of filename to the SCM
> #edit <filename>
> git commit -a		#commit current state of all tracked content
> 
> first, and then move on to teach selective commiting
I think that's pretty much what my patch to the tutorial does.
The tutorial talks about:
	1) git init-db
	2) git add .
	3) git commit
	4) modifying some files then git diff
	5) git commit file1 file2, or git commit -a

Then goes the discussion about what git add does and why. It is quite early in the tutorial and making it earlier would be a bit premature. Let's have the user make his first simple commit while blindly following the instructions before going with the actual usage model. At that point,since we just mentioned "git commit file1 file2" or "git commit -a" will the user be in the proper mindset to wonder why not using plain "git commit"... and incidentally the whole explanation is there to follow immediately.

I'm reworking my patch with suggestions that have been posted so let's hope it'll be even clearer.

Previous: Nicolas PitreNext: Jakub Narebski
Message 17 of 21 in “make 'git add' a first class user friendly interface to the index”
  1. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 1, 2006
  2. Junio C HamanoDec 1, 2006
  3. Alan ChandlerDec 2, 2006
  4. Nicolas PitreDec 2, 2006
  5. Nicolas PitreDec 2, 2006
  6. Carl WorthDec 2, 2006
  7. Junio C HamanoDec 2, 2006
  8. Carl WorthDec 2, 2006
  9. Jakub NarebskiDec 2, 2006
  10. Han-Wen NienhuysDec 2, 2006
  11. Alan ChandlerDec 2, 2006
  12. Carl WorthDec 2, 2006
  13. Jakub NarebskiDec 2, 2006
  14. Alan ChandlerDec 2, 2006
  15. Nicolas PitreDec 3, 2006
  16. Nicolas PitreDec 3, 2006
  17. Nicolas PitreDec 3, 2006
  18. Jakub NarebskiDec 2, 2006
  19. Nicolas PitreDec 3, 2006
  20. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 3, 2006
  21. Alan ChandlerDec 3, 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.