0

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?

Anton Putov
  • 1,951
  • 8
  • 34
  • 62

1 Answers1

5

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.

mvp
  • 111,019
  • 13
  • 122
  • 148