混帐 : pulling from repo [I had to recreate some files again]

标签 git codeigniter centos

我正在使用 git 在测试服务器和实时服务器之间传输文件。 首先,我曾经将测试的更新提交到 repo (Master),然后将更新从 repo (Master) pull 到实时服务器,然后整个实时网站关闭,当我尝试编辑任何 Controller 或任何文件时,我不能这样做,尽管文件具有相同的权限。我所能做的就是删除该文件并使用相同的内容重新创建它。

谁能帮帮我。谢谢

最佳答案

如果您使用的是 codeigniter,您可能正在修改应该放在 git .ignore 中的配置文件,以避免在部署最新更改时覆盖它们。

关于混帐 : pulling from repo [I had to recreate some files again],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32910081/

相关文章:

merge 成功后 Git rebase 冲突?

codeigniter - 无法创建 Sandbox Paypal 帐户

.net - centos 上最新的单声道

php - 如何防止特定目录运行Php、Html、Javascript语言?

python - 为什么在使用 Anaconda 启动期间运行 virt-install BASH 脚本与使用 Python 的 subprocess.run() 函数会出现不一致?

git - 与 git 相比,subversion 有什么优势?

git - 在用于实时部署的公共(public)仓库中 stash 凭据

git - Ansible git 模块 rev-parse

php - 为什么我的查询多次返回同一行?

php - 如何使用 Codeigniter php 框架显示图像?