From: Rostislav Svoboda <rostislav.svoboda@gmail.com>
To: git@vger.kernel.org
Subject: .gitignore vs untracked working file
Date: Mon, 10 Aug 2009 11:57:15 +0200 [thread overview]
Message-ID: <286817520908100257n35b178ebu387161658554b4a@mail.gmail.com> (raw)
Hi
I have a .gitignore rule to ignore everything in bin/ directories but
I cannot change branch because of a file lying in a bin/ directory
which actually should be ignored. What am I doing wrong?
$ git branch
master
* mybranch
$ git status
# On branch mybranch
nothing to commit (working directory clean)
$ cat .gitignore
*.class
.cvsignore
CVS/
.metadata/
build/
bin/
.#*
$ git checkout master
error: Untracked working tree file 'Project/bin/path/file.jjt' would
be overwritten by merge.
$ git --version
git version 1.6.4.msysgit.0
thx
Bost
next reply other threads:[~2009-08-10 9:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-10 9:57 Rostislav Svoboda [this message]
2009-08-10 10:01 ` .gitignore vs untracked working file Uwe Kleine-König
2009-08-10 10:17 ` Rostislav Svoboda
2009-08-10 11:41 ` Johannes Sixt
2009-08-10 12:59 ` Rostislav Svoboda
2009-08-10 13:14 ` Johannes Sixt
2009-08-10 13:49 ` Rostislav Svoboda
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=286817520908100257n35b178ebu387161658554b4a@mail.gmail.com \
--to=rostislav.svoboda@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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).