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

Suggestion for 'git add' CLI

From
Mme@alirezaarabi.com <me@alirezaarabi.com>
Date
Jul 11, 2022, 06:58 UTC
Message-ID
<84b593cf1bacc4541a7a4ca24a5e98fa@alirezaarabi.com>

hi there, I have a suggestion about git CLI.when I use 'git add -A' or 'git add --all' it stages all of my files but when I use git add <file_name> it adds the file name to the stage, not all files. but when I use ' git add <file_name> --all ' it also works and adds all the files to the stage. I think it's better to provide a warning for this situation. thank you.

Next: Junio C Hamano
Message 1 of 2 in “Suggestion for 'git add' CLI”
  1. me@alirezaarabi.comJul 11, 2022
  2. Junio C HamanoJul 11, 2022

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.