Rui Costa
Rui Costa

Reputation: 65

Why is .gitignore deleting files from my projects repository?

I placed some files in the .gitignore and now it's deleting files and entire folders from the project's repo.

Anyone knows how and why is this happening?

Thanks!

Upvotes: 0

Views: 725

Answers (1)

Gregg
Gregg

Reputation: 2624

Something else is happening, because files specified in .gitignore are not acted on by Git.

If you did a 'git clean' then files in '.gitignore' are not deleted. However they are deleted if you enter 'git clean -x'.

Upvotes: 1

Related Questions