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.

  • Bundler: always use latest revision of git branch in Gemfile
  • RubyMine doesn't recognize gem from git repository
  • How can I unlock my gemfile so I can access the rails server?
  • Troubles with git and Gemfile.lock
  • Gem is not checked out. Please run `bundle install` in Heroku
  • Git tagging and rails gemfile
  • How do I do that?

  • git: 'aws.push' is not a git command when trying to push a repository to Amazon Elastic Beanstalk on Mac
  • fixing a corrupt loose object as a commit in git
  • How can you set it up so that your project automatically updates on your production server when you make changes to a github repository?
  • How to play a custom MP3 when I push to GitHub from the command line?
  • How to add bitbucket private Git repository to AOSP?
  • Convert .gitignore to rsync merge filter include file? (with sed or awk)
  • One Solution collect form web for “Restore Gemfile.lock from gitignore”

    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.

    Git Baby is a git and github fan, let's start git clone.