Gitignore not workking for .suo files

5,245 views
Skip to first unread message

Zaaaaphod

unread,
Oct 4, 2011, 10:41:02 PM10/4/11
to GitExtensions
Hi all,

I've used Git Extensions for about six months on about half a dozen
projects and over three machines. One thing that's bugged me is that
it doesn't appear to ignore my *.suo files. Whenever I make a change
in Visual Studio, Git Extensions picks up a change in *.suo. This
means that I need to reset the file changes before doing a pull. I'm
not sure if this is an issue with GE or in GIT itself. The issue
annoys the hell out of me but I've just got used to it and put up with
it.

Has anyone else seen this? Is there something obvious that I'm
missing?

My .gitignore file is below (essentially the default provided by GE).

Thanks very much in advance.


Z




#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
[Oo]bj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
OnlineSignup/obj/

Meaney, Chris

unread,
Oct 4, 2011, 11:16:49 PM10/4/11
to gitext...@googlegroups.com
Have you previously checked in the *.suo files
If so try deleting the *.suo files and then check in the deletion.

It seems the ignore only works if the file is not already in the
repository.

Regards,
Chris

Michael West

unread,
Oct 4, 2011, 11:25:45 PM10/4/11
to gitext...@googlegroups.com
I agree with Chris. At work I have the .suo extension ignored and I do not have any file with that extension within the repository. 

Note: You can use the "!" symbol to allows specific files with that extension if needed.

Zaaaaphod

unread,
Oct 5, 2011, 12:00:02 AM10/5/11
to GitExtensions
Thanks guys, I think that did the trick!

I'm stoked about this. That's been "quietly annoying me" for six
months. I should have asked sooner.

It's interesting though that the file initially committed on all my
projects. Perhaps in my 'workflow' for setting up a project I'm doing
the first commit before adjusting the .gitignore file?

Anyway - thanks again for the help. Subversion just got even smaller
in my rearview mirror.


Z

On Oct 5, 2:25 pm, Michael West <michaellw...@gmail.com> wrote:
> I agree with Chris. At work I have the .suo extension ignored and I do not
> have any file with that extension within the repository.
>
> Note: You can use the "!" symbol to allows specific files with that
> extension if needed.
>

Michael West

unread,
Oct 5, 2011, 12:09:18 PM10/5/11
to gitext...@googlegroups.com
Here is what I have in my file:

# Ignore this file #
####################
.gitignore

# Compiled source #
###################
*.dll
*.exe

# Packages #
############
*.zip

# Logs #
########
*.log

# OS generated files #
######################
Thumbs.db

# Directories #
###############
bin/
obj/

# Visual Studio files #
#######################
*.suo
*.user

# Visual Source Safe files #
############################
*.scc
*.vspscc
*.vssscc

Alan

unread,
Nov 22, 2011, 9:40:18 AM11/22/11
to GitExtensions
I consider the current behavior buggy and expanded a bug report
accordingly:

https://github.com/spdr870/gitextensions/issues/243

Reply all
Reply to author
Forward
0 new messages