seeing files not checked in?

3 views
Skip to first unread message

Bob Carpenter

unread,
Oct 25, 2012, 6:28:02 PM10/25/12
to stan...@googlegroups.com
We were trying to do the current release and I got
bit by having some .o files lying around that hugely
inflated the size. We tracked them down by divide
and conquer on the files.

I wasn't seeing them on "git status" because there
was a general .gitignore for .o files.

Is there a way to see things in the directory that
aren't in version control?

- Bob

Bob Carpenter

unread,
Oct 25, 2012, 6:36:00 PM10/25/12
to stan...@googlegroups.com
Daniel figured it out:

> git clean -n -x

And then to get rid of them

> git clean -f -x

I thought it'd be a bit extreme to do that automatically
on our dist target.

- Bob

Ben Goodrich

unread,
Oct 25, 2012, 6:38:03 PM10/25/12
to stan...@googlegroups.com

That is probably a bit extreme for a dist target. But to answer your original question, see

http://stackoverflow.com/questions/3538144/how-do-you-git-show-untracked-files-that-do-not-exist-in-gitignore

Ben


Reply all
Reply to author
Forward
0 new messages