使用 git 我应该如何处理 .bundle 目录?

with git what should I do with .bundle directory?

目前我的 .bundle 目录未被跟踪。

我应该git add .bundle/*吗?我不知道该怎么办。

如果这是一个 Rails 3 项目,您应该忽略 .bundle 目录。给你添加一行.gitignore file:

.bundle

所以git status不会再将其显示为未跟踪的目录。

http://nuclearsquid.com/writings/git-tricks-tips-workflows/

您不应该将它添加到您的 git 存储库中,忽略它!请参阅下面 link:

中的捆绑器说明

http://bundler.io/rationale.html

将您的代码检查到版本控制中

Do not check in the .bundle directory, or any of the files inside it. Those files are specific to each particular machine, and are used to persist installation options between runs of the bundle install command.