gpt4 book ai didi

ruby - 有些东西一直在重写我的 Gemfile.lock

转载 作者:数据小太阳 更新时间:2023-10-29 07:55:00 24 4
gpt4 key购买 nike

<分区>

在共享项目上工作时,我经常发现我的 Gemfile.lock 与存储库不同步,产生如下错误消息:

$ git pull
Updating 1911275..8c5d26f
error: Your local changes to the following files would be overwritten by merge:
Gemfile.lock
Please commit your changes or stash them before you merge.
Aborting

当我尝试 git stash 更改时,它不起作用:

$ git stash
Saved working directory and index state WIP on development: 1911275 Merge branch 'development' of https://github.com/mygroup/myrepo into development
HEAD is now at 1911275 Merge branch 'development' of https://github.com/mygroup/myrepo into development
$ git status
On branch development
Your branch is behind 'origin/development' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: Gemfile.lock

no changes added to commit (use "git add" and/or "git commit -a")

如果我足够快地stashstatus,我可以看到更改正在被隐藏:

$ git stash && git status
Saved working directory and index state WIP on development: 1911275 Merge branch 'development' of https://github.com/mygroup/myrepo into development
HEAD is now at 1911275 Merge branch 'development' of https://github.com/mygroup/myrepo into development
On branch development
Your branch is behind 'origin/development' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean

但是另一个status显示Gemfile.lock已经回来了:

$ git status
On branch development
Your branch is behind 'origin/development' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: Gemfile.lock

no changes added to commit (use "git add" and/or "git commit -a")

不幸的是,同样的技巧对 git stash && git pull 不起作用; pull 太慢了,在拉取成功之前锁文件又出现了。

我认为这可能是我的 IDE 在后台重新绑定(bind),但无论 IDE 是否正在运行,它都会发生。我找不到任何正在运行的 bundle 程序进程、gem 进程,或者任何明显的 Ruby 进程。

谁或什么正在重新生成我的文件?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com