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

Basic Git Questions

From
PKParag Kalra <paragkalra@gmail.com>
Date
Dec 19, 2010, 22:32 UTC
Message-ID
<AANLkTiki2e4-YD0P9kb7g-WbLTPhAXQ22R2jCAXVtjN1@mail.gmail.com>
Hi,
1. I generally add the files in my working directory using "git add
.". But sometimes you want to add all the files except 1 or 2 file. Is
there a shortcut way we can tell git to add all the files but exclude
a particular file.
2. Also sometime when the code is committed, I realize that I have
forgot to change or add a file. Is there a way we can we commit a file
to existing commit number with git log showing only the old git commit
number and not creating a new one for the last commit.

Cheers, Parag

Next: Konstantin Khomoutov
Message 1 of 3 in “Basic Git Questions”
  1. Parag KalraDec 19, 2010
  2. Konstantin KhomoutovDec 19, 2010
  3. Thomas RastDec 19, 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.