1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Githubにpush出来ない時に見るポイント

Posted at

何回かハマったのでメモ

状況としては下記のような状態

  • Githubのリポジトリにpushしようとしたが、ID/PASSを求められる。
  • Githubに登録してある鍵は正しい。

上記のような状況に出くわした場合、pushしようとしているリポジトリの設定が原因である可能性が高い。

下記コマンドでリポジトリのリモート設定を書き換えてやる必要がある。

git remote set-url origin git@github.com:username/repo.git

参考
http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?