gpt4 book ai didi

Git无法锁定引用,无法创建引用

转载 作者:行者123 更新时间:2023-12-03 15:49:39 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





git push: refs/heads/my/subbranch exists, cannot create

(12 个回答)


3年前关闭。




我收到此错误:

fatal: cannot lock ref 'refs/heads/oleg/feature/1535693040/squashed':

'refs/heads/oleg/feature/1535693040' exists; cannot create 'refs/heads/oleg/feature/1535693040/squashed'



产生错误的脚本是:
current_branch="$(git rev-parse --abbrev-ref HEAD)"

git checkout -b "$current_branch/squashed"
git reset --soft "remotes/origin/dev";

git add .
git add -A
git commit -am "ores/gitflow auto-commit (squashed)"
git push

有人知道那是什么吗?

最佳答案

啊,我找到了一个答案:
https://stackoverflow.com/a/22630664/1223975

简而言之,如果:a/b/c存在,Git 无法创建 a/b/c/d
不知道为什么

关于Git无法锁定引用,无法创建引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52123618/

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