mallorn
mallorn

Reputation: 815

excluding file in commit - ignore file in git (.gitignore)

I have a file named iConstructor.v11.suo which I wan't to ignore with commits, tried multiple ways, but it is still in my unstaged changes.. I can ignore other folders, but have problem with this file

tried this in .gitignore:

# git ignore file
iConstructor.v11.suo

\iConstructor.v11.suo
*\iConstructor.v11.suo
*iConstructor.v11.suo

/iConstructor.v11.suo
*/iConstructor.v11.suo
/*.suo
\*.suo
**\*.suo
**/*.*.suo
*.v11.suo/

I guess the problem is that I just started the repository over the old project: first started the "iConstructor" (empty) repository and then copied my files, so the main folder structure looks like this:
|
|- .gitignore
|- iConstructor
|- other iConstructor-project directories
|- iConstructor.v11.suo
|- ...

Upvotes: 1

Views: 318

Answers (1)

Izuka
Izuka

Reputation: 2612

I have it working with the line *.suo in my .gitignore file. If it's not working for you, this may work for you :

git rm --cached iConstructor.v11.suo

Upvotes: 2

Related Questions