neca
neca

Reputation: 129

Git commit shows changed files like metadata although they are in gitignore file

The information on the commits on GitHub says there are thousands of additions and deletions in files such as metadata even though the metadata is in the gitignore file. This is how looks like my gitignore file:

.metadata

bin/

tmp/

*.tmp

*.bak

*.swp

*~.nib

local.properties

.settings/

.loadpath

.recommenders

.springBeans

Upvotes: 1

Views: 588

Answers (1)

Johnny Beltran
Johnny Beltran

Reputation: 821

You probably added certain files to .gitignore after they had already been tracked by git. If this is the case, you need to tell git to untrack the file:

git rm --cached <file>

Upvotes: 1

Related Questions