LoginSignup
10
5

More than 3 years have passed since last update.

GitHubのパスワードを変更して、pushしたらエラーが出た話

Last updated at Posted at 2019-12-10

エラー詳細

GitHubのパスワードを変更後に、作業ブランチをpushしたら下記エラーが発生

remote: Invalid username or password.

解決方法

下記コマンドでGitHubユーザ名を入力

git config --global user.name ユーザ名

その後、通常通りpushを実施するとユーザ名とパスワードを聞かれるので入力する。

git push origin ブランチ名
Username for 'https://github.com': ユーザ名
Password for 'https://hogehoge@github.com': 新しいパスワード 

参考

GitHubでパスワード変更後、pushしたら「remote: Invalid username or password.」が出たときの対処法

10
5
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
10
5