当前位置:   article > 正文

git cherry-pick冲突解决

git cherry-pick冲突

git-cherry使用

git cherry-pick冲突解决:

我使用的vscode, 选择incomming,没实际图片,不贴了。。。

解决冲突后,

git add .

再,

git cherry-pick --continue

然后 git push 即可

若:

  1. remote: GitLab: You are not allowed to push code to protected branches on this project.To *.git
  2. ! [remote rejected] * -> * (pre-receive hook declined)

是因为:

there's no problem - everything works as expected.

In GitLab some branches can be protected. By default only Maintainer/Owner users can commit to protected branches (see permissions docs). master branch is protected by default - it forces developers to issue merge requests to be validated by project maintainers before integrating them into main code.

You can turn on and off protection on selected branches in Project Settings (where exactly depends on GitLab version - see instructions below).

On the same settings page you can also allow developers to push into the protected branches. With this setting on, protection will be limited to rejecting operations requiring git push --force (rebase etc.)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/756516
推荐阅读
相关标签
  

闽ICP备14008679号