git の設定が https 通信になっている可能性が高い
- https通信になっている場合
$ git remote -v
origin https://github.com/△△××/◯◯△△.git (fetch)
origin https://github.com/△△××/◯◯△△.git (push)
- ssh接続になっている場合
$ git remote -v
origin [email protected]:△△××/◯◯△△.git (fetch)
origin [email protected]:△△××/◯◯△△.git (push)
remote.origin.url
先を確認して控えておくgit config --list
- 通信をsshに変える
git remote set-url origin [email protected]:
- リモートレポジトリをセットしてあげる
git remote set-url origin [email protected]:△△××/◯◯△△.git
△△××/◯◯△△
はremote.origin.url
先で控えたものを使用する
- git pull で確認してみる
git pull