0

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.

2 Answers 2

1

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

_ReSharper

_ is not a special character in .gitignore.

Sign up to request clarification or add additional context in comments.

Comments

1

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*

2 Comments

I tried that, maybe the issue is that file already exists in the repo (its a modification), so it will then not get ignored right?
Yes, the documentation for gitignore says "Files already tracked by git are not affected; see the NOTES below for details."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.