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

Feature request: git commit -A

From
AFAidan Feldman <aidan.feldman@gmail.com>
Date
Jun 24, 2014, 19:01 UTC
Message-ID
<CAPgiXS7AizvtVNWR4dPXZ6nUQh7ujrrRFmd2SAktsUB0pidFVw@mail.gmail.com>

Hi all- I work on the education team at GitHub and do a fair number of Git workshops. One thing that I've always found difficult to explain to newbies is how the staging area works, and why it's useful. As a hand-wave to simplify things, I usually have them use

git add -A git commit -m "..."

to not really have to worry about untracked vs. modified/removed files aren't included with `git commit -a` or `git add .`. I would like to add a `-A` flag to the `commit` command, which effectively does a `git add -A` before committing.

I was trying to submit a patch myself, but couldn't even manage to find where the various flags are defined :-) Does the feature sound reasonable? Mind pointing me in the right direction of where this would be added?

Thanks! -Aidan Feldman

Next: David Turner
Message 1 of 2 in “Feature request: git commit -A”
  1. Aidan FeldmanJun 24, 2014
  2. David TurnerJun 24, 2014

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.