.gitignore polution

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

.gitignore polution

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:47:43

Heya,

I usually compile git from next (sometimes pu to test out a new
feature), and when I then switch back to a development branch (usually
based off master) I get something like this:

$ git status
# On branch remote-helpers
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	git-http-backend
#	git-notes
#	git-remote-hg
#	test-index-version

Now I can easily do 'git clean -f', but it's somewhat annoying. How do
other developers deal with this?

-- 
Cheers,

Sverre Rabbelier

Re: .gitignore polution

From: Jeff King <hidden>
Date: 2016-06-15 22:47:43

On Sun, Nov 15, 2009 at 12:57:31AM +0100, Sverre Rabbelier wrote:
I usually compile git from next (sometimes pu to test out a new
feature), and when I then switch back to a development branch (usually
based off master) I get something like this:

$ git status
# On branch remote-helpers
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	git-http-backend
#	git-notes
#	git-remote-hg
#	test-index-version

Now I can easily do 'git clean -f', but it's somewhat annoying. How do
other developers deal with this?
I use "git clean". :)

The other option is to mark them for ignore outside of the
branch-specific ignore:

  git ls-files -o --exclude-standard >>.git/info/exclude

-Peff

Re: .gitignore polution

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:47:43

Heya,

On Sun, Nov 15, 2009 at 10:43, Jeff King [off-list ref] wrote:
The other option is to mark them for ignore outside of the
branch-specific ignore:

 git ls-files -o --exclude-standard >>.git/info/exclude
Ah, that would work, thanks! :)

-- 
Cheers,

Sverre Rabbelier
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help