0
0

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エラー]remote: Invalid username or password. fatal: Authentication failed for

Posted at

きっと今後未来の自分がエラーに躓くのでメモしとく。

結論

2段階認証の設定をしたときは
git clone https://hoge.gitではなく
git clone git://hoge.gitを使ってね。

# NG
~/hogeProject:user1 git clone https://github.com/hoge/hoge-branch.git
Cloning into 'hoge-branch'...
Username for 'https://github.com': user1
Password for 'https://user1@github.com': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/hoge/hoge-branch.git/'

# OK
~/hogeProject:user1 git clone git@github.com:hoge/hoge-branch.git
Cloning into 'hoge-branch'...
warning: You appear to have cloned an empty repository.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?