☻ git push origin protected
protected 32adf9f
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 351 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: permission denied to update branch protected
To bitbucket.org:blah/blah.git
! [remote rejected] protected -> protected (pre-receive hook declined)
error: failed to push some refs to '[email protected]:blah/blah.git'
、私はブランチにを押して問題があるとは思わないが、むしろすべてがをプッシュと認証問題があります。
branchname
にプッシュするために使用しているコマンド(書き込みアクセス権があるブランチであることを前提としています)は正しいです。
以下は、保護githubのブランチにプッシュする失敗した試みの出力です。これは、現在の質問には関係ありませんが、それは保護のGithubのブランチにプッシュしようとする上で
将来の読者のために有用である可能性があるため、次のように、出力され、ここでそれを残しています:
☻ git push --set-upstream origin master
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (11/11), 1.69 KiB | 0 bytes/s, done.
Total 11 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: At least one approved review is required.
To github.com:blah/blah.git
! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to '[email protected]:blah/blah.git'
アップデートお詫び申し上げます、私はあなたのレポがGithubではなくbitbucket上にあることに気付きました。 bitbucketの出力を更新しました。
所有しているリポジトリにプッシュをテストできますか?認証メカニズムとしてHTTPSまたはGIT/SSHを使用する予定ですか?あなたがsshキーを持っているなら、後者はあなたがリポジトリを複製するのに使ったURLが 'https://ではなく' [email protected] ...... ' .... ' –