Blankman
Blankman

Reputation: 267000

How to ignore files in Git that are like _ReSharper

I want to ingore any file/folder that has:

_ReSharper

in the file or folder in my .gitignore file, is this possible?

I tried:

ReSharper

but that doesn't work.

Upvotes: 0

Views: 228

Answers (2)

Mark Longair
Mark Longair

Reputation: 467181

I read your question as asking whether you can ignore all files and directories that contain _ReSharper as a substring of their name, in which case you can add the following line to your .gitignore:

*_ReSharper*

Upvotes: 1

Benjamin Bannier
Benjamin Bannier

Reputation: 58594

Just add the exact name you want to the .gitignore, in this case add

_ReSharper

_ is not a special character in .gitignore.

Upvotes: 1

Related Questions