git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Levinstein <blevinstein@gmail.com>
To: git@vger.kernel.org
Subject: Bug Report: Too many untracked files (gitignore)
Date: Fri, 2 Sep 2016 16:06:26 -0700	[thread overview]
Message-ID: <CAMbP-nS_MM0QXgw183DLQPx1YU1BH8ytKCv86p-JSxzdb2jpQA@mail.gmail.com> (raw)

The relevant repo is here:
https://github.com/blevinstein/dotfiles

My gitignore file looks like this:
https://github.com/blevinstein/dotfiles/blob/2400ca8642a7b454a2bfc54e8402343d008836aa/.gitignore
It basically ignores all files, except for specifically whitelisted
files. However, when I run "git status" (git version
2.8.0.rc3.226.g39d4020), I see the following untracked files:

#       .bash_history
#       .bash_logout
#       .cache/
#       [private]
#       [private]
#       .profile
#       .viminfo
#       dev/

I can fix this by removing the following line from my gitignore:

!.vim/colors/*
after which all the untracked files disappear. I also tried changing
that line to:

!.vim/colors/twilight256.vim

but it had no effect.

The same effect can be achieved with any directory name starting with a period:

!.tmux/asdf

!.vim/asdf

where .tmux and .vim are real directories. It does not seem to matter
whether the "asdf" subdirectory exists at all.

Brian Levinstein

blevinstein@gmail.com | bpl4ab@virginia.edu
(703) 673-8711
Google | Software Engineer
University of Virginia | MS Commerce 2014
University of Virginia | BS Computer Science 2013
Alpha Tau Omega | Delta Chapter
http://www.linkedin.com/pub/brian-levinstein/14/620/6ba
https://github.com/blevinstein

             reply	other threads:[~2016-09-02 23:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-02 23:06 Brian Levinstein [this message]
2016-09-02 23:58 ` Bug Report: Too many untracked files (gitignore) Stefan Beller
2016-09-03  0:52   ` Brian Levinstein

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=CAMbP-nS_MM0QXgw183DLQPx1YU1BH8ytKCv86p-JSxzdb2jpQA@mail.gmail.com \
    --to=blevinstein@gmail.com \
    --cc=git@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).