Re: Can we stage all files using "git add" command, except some specific files ?
- From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
- Date
- May 26, 2014, 20:23 UTC
- Message-ID
- <1401135802.25483.1.camel@spirit>
- In-Reply-To
- <8392138.j8Dle5WGbS@linux-wzza.site>
On di, 2014-05-27 at 00:33 +0630, Arup Rakshit wrote:
Show 6 quoted lines
> > 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.
-- Dennis Kaarsemaker www.kaarsemaker.net