Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经读过,在使用 Drush 更新 Drupal 模块时,您应该首先删除该模块,这样就不会有任何可能导致问题的孤立文件。是否有使用某些 Drush 命令参数自动执行此操作的方法?我看到一些与 SVN 相关的论点看起来很有希望,但我正在使用 git。
有任何想法吗?
我无法通过阅读 Drush 代码来确认它,但我很确定 Drush 自己会处理这个问题。它会将旧的模块目录移动到备份目录中,然后从 Drupal 存储库中签出一个全新的版本。