Background info:
I\'m using GIT to get a repository of a project with Ruby files in it. The project lives in my SITES folder under home directory on my Mac.
Usually if you clone a repository or if you are using Docker, files like .gitignore or .dockerignore has instructions for doesn't include bin folder, check in both files and simply remove the line with it.
You can execute rails new in another directory and copy the generated bin folder to your project and then push to your repository.