Bitbucket 拒绝推送到一个精确的分支

Bitbucket 拒绝推送到一个精确的分支

Bitbucket 拒绝推送到某个特定分支。我可以推送到其他分支,但不能推送到 dev 分支。我的同事都不知道发生了什么。是否有针对分支的特定设置?我没有看到任何设置。如果我在命令行中运行 git push,则会得到以下结果:

λ git push origin dev-k8s
To https://bitbucket.org/tomas-tiefenbach-simplaq/simplaq-portal.git
 ! [rejected]        dev-k8s -> dev-k8s (non-fast-forward)
error: failed to push some refs to 'https://bitbucket.org/tomas-tiefenbach-simplaq/simplaq-portal.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

这是我从 git pull 得到的结果

λ git pull origin dev-k8s
From https://bitbucket.org/tomas-tiefenbach-simplaq/simplaq-portal
 * branch            dev-k8s    -> FETCH_HEAD
Already up to date.

如果我使用 -f force 和 push,则会得到以下结果

λ git push -f origin dev-k8s
Enumerating objects: 11, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 570 bytes | 570.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Permission denied to update branch dev-k8s.
To https://bitbucket.org/tomas-tiefenbach-simplaq/simplaq-portal.git
 ! [remote rejected] dev-k8s -> dev-k8s (pre-receive hook declined)
error: failed to push some refs to 'https://bitbucket.org/tomas-tiefenbach-simplaq/simplaq-portal.git'

这是 gitk --all 的结果 在此处输入图片描述

答案1

问题出在分支机构的权限上。

相关内容