Littlee
Littlee

Reputation: 4327

git ignore commited files on a PUBLIC branch

it seems there are already "simlilar" answers, but my situation is

so should I ask all my teammates to run git rm --cached a.txt in their local branch?

(a.txt is the classic "package-lock.json", due to diff versions among local machines and servers)

Upvotes: 0

Views: 37

Answers (1)

I think they are adding a.txt back. If you also add .gitignore and push, then they probably won't add it again.

Note: package-lock.json is intended to be included in source control. See: here

Upvotes: 1

Related Questions