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

Re: Can we stage all files using "git add" command, except some specific files ?

From
Duy Nguyen <pclouds@gmail.com>
Date
May 26, 2014, 22:24 UTC
Message-ID
<CACsJy8B7TeeT-xOoZyPc6_LLEL-ugdgzbKf3FYci28f9eGrpvA@mail.gmail.com>
In-Reply-To
<CALZVapnUgEnw6rv630awF7AjnfhRzzK8H5wP6jTLN6XZGVJDEQ@mail.gmail.com>

On Tue, May 27, 2014 at 5:06 AM, Javier Domingo Cansino <javierdo1@gmail.com> wrote:

> If you don't want an specific file, but you neither the .gitignore,
> just use .git/info/exclude file for project specific or
> $HOME/.config/git/ignore for user level.

This is actually better. 'git add' does not allow to specify exclude patterns in command line (more convenient then editing .gitignore) like ls-files. Perhaps we should add it for one-shot exclusion?

> Anyway, this is all in man gitignore
>
> [1] Git ignore man page: http://git-scm.com/docs/gitignore
> Javier Domingo Cansino
-- 
Duy
Previous: Javier Domingo CansinoNext: Arup Rakshit
Message 5 of 7 in “Can we stage all files using "git add" command, except some specific files ?”
  1. Arup RakshitMay 26, 2014
  2. Dennis KaarsemakerMay 26, 2014
  3. Arup RakshitMay 26, 2014
  4. Javier Domingo CansinoMay 26, 2014
  5. Duy NguyenMay 26, 2014
  6. Arup RakshitMay 27, 2014
  7. Duy NguyenMay 26, 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.