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

Re: Don't share anything but those files

From
IBIllia Bobyr <ibobyr@blizzard.com>
Date
Jul 13, 2012, 18:08 UTC
Message-ID
<5000640F.40609@blizzard.com>
In-Reply-To
<20120713152127.GC17521@phobos.chilli.itwm.local>
On 7/13/2012 8:21 AM, Edward Toroshchin wrote:
Show 7 quoted lines
> On Fri, Jul 13, 2012 at 10:59:55AM -0400, Yves Perron wrote:
>> I'm wondering how to commit only selected files/folders on GIT, if even
>> possible.
> Just "git add" only the files you need.
>
> If you want git to ignore all the rest, you can write '*' in your
> .gitignore

As an alternative, you may be able to use negative patterns in your .gitignore or other ignore files. Like this:

* !.gitignore !a_file_that_should_be_tracked !a_dir_to_track/

See "git help ignore" for more details.
Illia Bobyr
Previous: Edward ToroshchinNext: Yves Perron
Message 3 of 8 in “Don't share anything but those files”
  1. Yves PerronJul 13, 2012
  2. Edward ToroshchinJul 13, 2012
  3. Illia BobyrJul 13, 2012
  4. Yves PerronJul 13, 2012
  5. Yves PerronJul 16, 2012
  6. Edward ToroshchinJul 13, 2012
  7. Yves PerronJul 13, 2012
  8. Taylor HedbergJul 13, 2012

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.