Anton Putov
Anton Putov

Reputation: 1981

how to correct set .gitignore file

When I try to commit changes to master git shows me unversioned files with .dll,.cash,.. extensions. While googling I found that I must create .gitignore file (like this). I have created it and placed in .git project directory.But I still see .dll and other unneccessary files. Then I tryed to set global .gitignore file (I placed .gitignore file on the same directory with .gitconfig file). Still no changes. How to correct set .gitignore file and what additional actions I must apply?

Upvotes: 0

Views: 1053

Answers (1)

mvp
mvp

Reputation: 116197

You should not put it into .git directory.

Simply copy .gitignore file anywhere in your working tree (probably at the root of working tree), and it will work.

You should commit this new .gitignore file into your repository, such that other collaborators will automatically use it without having to setup anything.

For more information, read documentation.

Upvotes: 5

Related Questions