Reputation: 2891
In my Rails App, Gemfile.lock is ignored from the tracking through the .gitignore
But I want the file to be committed and tracked.
How do I do that?
Upvotes: 1
Views: 353
Reputation: 438
First remove the entry for Gemfile.lock from the .gitignore, add the .gitignore and commit. Then add and commit the Gemfile.lock. As long as these are done in two separate commits, other team members will also be able to track the Gemfile.lock file.
Upvotes: 2