有人能解释为什么我的团队中的一个成员在提交这个git重置命令后无法将更改推到主分支(这些更改会使回购返回几次提交):
git reset --hard (previous commit SHA)
这是在尝试git推送后收到的错误:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@xxxxx.com:xxx/xxxx.git'
hint: Updates were rejected because the tip of y
问题
删除操作后,在主服务器中同步此更改,所有prs都将开始执行此挂起的工作。
test Expected Waiting for status to be reported
我试着关闭并重新打开prs,再次触发工作,但什么也没有成功。我在我的github工作流文件中没有任何一个引用,在github操作中也没有.
我对我的测试分支有一个分支保护,但是我需要执行每个拉请求合并一个操作来更新软件的版本并在测试分支中提交。
即使使用标记-强制错误也会出现:
INPUT_TAGGING_MESSAGE:
No tagging message supplied. No tag will be added.
INPUT_PUSH_OPTIONS: --force
remote: error: GH006: Protected branch update failed for refs/heads/test.
remote: error: Changes must be made through a