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

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

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

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

Q&A

0回答

1245閲覧

github sourcetree アカウント名変更 push できない

gygy

総合スコア5

GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

0グッド

1クリップ

投稿2020/04/14 05:05

sourcetreeを使ってgithubでファイルを管理しています。
githubのアカウント名を変更後、sourcetreeのpushができなくなりました。

git

1git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master 2Pushing to ssh://git@github.com/アカウント名/c4.git 3git@github.com: Permission denied (publickey). 4fatal: Could not read from remote repository. 5 6Please make sure you have the correct access rights 7and the repository exists. 8Pushing to ssh://git@github.com/アカウント名/c4.git 9git@github.com: Permission denied (publickey). 10fatal: Could not read from remote repository. 11 12Please make sure you have the correct access rights 13and the repository exists. 14Pushing to ssh://git@github.com/アカウント名/c4.git 15git@github.com: Permission denied (publickey). 16fatal: Could not read from remote repository. 17 18Please make sure you have the correct access rights 19and the repository exists. 20Pushing to ssh://git@github.com/アカウント名/c4.git 21git@github.com: Permission denied (publickey). 22fatal: Could not read from remote repository. 23 24Please make sure you have the correct access rights 25and the repository exists. 26Completed with errors, see above

##試したこと
・アカウント名を前のものに戻す
・設定→アカウント→追加→アカウントを追加する
・sourcetreeのアップデート
・再起動
・設定→高度な設定→ユーザー情報→グローバルユーザの設定のチェックを外す

よろしくお願いします。

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

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

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

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

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

hoshi-takanori

2020/04/14 07:15

ssh://git@github.com/アカウント名/c4.git の「アカウント名」は新しいアカウント名に変更しましたか? あとはログインをやり直す必要があって、やり方は OS によって違うようです。
gygy

2020/04/14 08:37

新しいアカウント名に変更しました。今は上記のコードでアカウント名の部分が新しいアカウント名の表示になっています。 osはmacを使っております。 https://qiita.com/DaigoHayashi/items/25624c37c1e349062f16 が結構近いと思うのですが、winではなくmacのため不明です。
gygy

2020/04/14 09:00

キーチェーンにアクセスして削除して再起動しましたが、同じ警告が出てpushできませんでした。sshに問題があるみたいですが、どう設定したらいいか不明です。
gygy

2020/04/14 09:03

アカウント名の変更は 設定→リモートタブ→選択→編集→保存 でいいんでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問