我收到此错误:
Run Code Online (Sandbox Code Playgroud)fatal: cannot lock ref 'refs/heads/oleg/feature/1535693040/squashed':'refs/heads/oleg/feature/1535693040' 存在;无法创建 '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
Run Code Online (Sandbox Code Playgroud)
有人知道那是什么吗?
Ale*_*lls 11
啊,我找到了答案:https : //stackoverflow.com/a/22630664/1223975
简而言之,如果:a/b/c存在,Git 不能创建a/b/c/d
不知道为什么
| 归档时间: |
|
| 查看次数: |
9974 次 |
| 最近记录: |