All of lore.kernel.org
 help / color / mirror / Atom feed
From: Illia Bobyr <ibobyr@blizzard.com>
To: Edward Toroshchin <edward.hades@gmail.com>
Cc: Yves Perron <yves.perron@modusfx.com>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Don't share anything but those files
Date: Fri, 13 Jul 2012 18:08:15 +0000	[thread overview]
Message-ID: <5000640F.40609@blizzard.com> (raw)
In-Reply-To: <20120713152127.GC17521@phobos.chilli.itwm.local>

On 7/13/2012 8:21 AM, Edward Toroshchin wrote:
> 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

  parent reply	other threads:[~2012-07-13 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13 14:59 Don't share anything but those files Yves Perron
2012-07-13 15:21 ` Edward Toroshchin
     [not found]   ` <50004048.9060203@modusfx.com>
2012-07-13 16:14     ` Edward Toroshchin
2012-07-13 17:40       ` Yves Perron
2012-07-13 17:53         ` Taylor Hedberg
2012-07-13 18:08   ` Illia Bobyr [this message]
2012-07-13 18:19     ` Yves Perron
2012-07-16 14:26       ` Yves Perron
  -- strict thread matches above, loose matches on Subject: below --
2012-07-13 14:40 Yves Perron
2012-07-17  8:37 ` Nick Douma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5000640F.40609@blizzard.com \
    --to=ibobyr@blizzard.com \
    --cc=edward.hades@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=yves.perron@modusfx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.