Re: Don't share anything but those files
- From
- Illia 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