0
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 3 years have passed since last update.

git push すると Authentication failed が出てpushできないとき

Last updated at Posted at 2020-05-09

前提

  • 実行環境はWindows10.
  • GitLabにサインインするとき,新規にアカウントを作らずにGitHubのアカウントを用いてサインインした.
  • 正しくユーザーネームやパスワードを入力してもpushできない.

エラー内容

ユーザーネームやリポジトリ名は適当に変えている.

$ git push origin hogehoge
Username for 'https://gitlab.com': username
Password for 'https://username@gitlab.com':
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/hoge/hogehoge.git/'

原因

GitLabのパスワードを設定していなかったことが原因だった.

解決方法

以下のページからパスワードを設定する.
https://gitlab.com/profile/password/edit

設定後,再度pushするとpushできた.

0
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
0
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?