Abibullah Rahamathulah
Abibullah Rahamathulah

Reputation: 2891

Restore Gemfile.lock from gitignore

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

Answers (1)

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

Related Questions