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