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
Javier Domingo Cansino <javierdo1@gmail.com>
Date
May 26, 2014, 22:06 UTC
Message-ID
<CALZVapnUgEnw6rv630awF7AjnfhRzzK8H5wP6jTLN6XZGVJDEQ@mail.gmail.com>
In-Reply-To
<11486854.4deTbW34tQ@linux-wzza.site>

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.

Anyway, this is all in man gitignore

[1] Git ignore man page: http://git-scm.com/docs/gitignore Javier Domingo Cansino

2014-05-26 21:27 GMT+02:00 Arup Rakshit <aruprakshit@rocketmail.com>:
Show 25 quoted lines
> On Monday, May 26, 2014 10:23:22 PM you wrote:
>> On di, 2014-05-27 at 00:33 +0630, Arup Rakshit wrote:
>> > Now, you can see, I have staged all the files first using *git add
>> > -A*, then _unstaging_ those I don't want to _stage_ right now. Now can
>> > this be done, in the *staging* time ? I mean any way to tell `git add`
>> > command, that add all the files from the current directory, except
>> > some specific files.
>>
>> No, there is no such option to do that, but you could use git add
>> --interactive and use its interface to quickly pick the files you want
>> to add.
>
> Hi,
>
> I tried it also.. But just didn't get it, how to use,, lots of options 1,2,3
> etc .. :)
>
> --
> ===============
> Regards,
> Arup Rakshit
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Arup RakshitNext: Duy Nguyen
Message 4 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.