質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
SourceTree

SourceTreeは、Gitのクライアントツール。視覚的に操作するGUI形式でGitの操作が容易になります。MacやWindowsなどのOSに依存しておらず、PC環境に合わせてインストールすることが可能です。

BitBucket

BitBucketは無料のリポジトリ管理ホスティングサービスです。 MercurialとGitのVCSに対応しています。プライベートリポジトリを、制限なく作成することが可能です。

Q&A

解決済

2回答

4423閲覧

sourcetreeでプッシュするとエラーが出ます。

gyugyu

総合スコア8

SourceTree

SourceTreeは、Gitのクライアントツール。視覚的に操作するGUI形式でGitの操作が容易になります。MacやWindowsなどのOSに依存しておらず、PC環境に合わせてインストールすることが可能です。

BitBucket

BitBucketは無料のリポジトリ管理ホスティングサービスです。 MercurialとGitのVCSに対応しています。プライベートリポジトリを、制限なく作成することが可能です。

0グッド

0クリップ

投稿2017/12/08 12:51

sourcetreeとBitbucketを初めて使い始めた者です。
(MacOSX 10.12.6を使用しています)
一通りの設定が終わり、sourcetreeでプッシュしたところ、次のようなエラーが出ます。

<エラー内容(一部xで伏せ字しています)>
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/master:refs/heads/master
Pushing to git@bitbucket.org:xxxxxxxxx/xxxxxxxxx.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Pushing to git@bitbucket.org:xxxxxxxxx/xxxxxxxxx.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Pushing to git@bitbucket.org:xxxxxxxxx/xxxxxxxxx.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see abovePushing to git@bitbucket.org:xxxxxxxxx/xxxxxxxxx.git
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

イメージ説明

おそらく設定のどこかが間違っているのだと思いますが、エラーの意味がわかりません。
BitbucketではちゃんとSSH鍵の設定もできているようです。

どなたかお分かりの方がいらっしゃいましたら、教えていただけますでしょうか。

よろしくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

SSHkeyの設定が正常に行えていないのが原因だと思われます。
下記の記事にそってSSHKeyの設定を行ってみて下さい。
https://qiita.com/evitch/items/5d87b8aab5cd72695d2b

投稿2019/06/06 15:06

marurunn

総合スコア702

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

ありがとうございます。
教えていただいたURLを参照に試したら解決いたしました。ありがとうございました。

投稿2019/06/20 16:22

gyugyu

総合スコア8

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問