種別[gsm] 2020-12-28T22:14:08Z
セクショングローバル共有メモ
日時2020-12-28T22:14:08Z
元URL(URLなし)

GitHub が↓みたいな警告を返してきた。 >Deprecation…

jrf> GitHub が↓みたいな警告を返してきた。

>Deprecation Notice 

You recently used a password to access the repository at JRF-2018/shared_memo with git using git/2.29.2.

Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
<

で、私は Cygwin の git を使っているのだが、なんか、Git Credential Manager Core または Git Credential Manager for Windows を使えば良いのではないかという感じなので、いろいろ試しながら、Git for Windows 2.30.0 もインストールしてみた。

が、うまくいかない。↓に

《git-credential manager for windows with cygwin · GitHub》  
https://gist.github.com/kelbyers/6e845fd28b8bf55ef66b36025ca06c10
>you do not need to copy files anywhere, simply configuring `credential.helper` to `manager` works if the credential manager is installed<

…とかあるので、ファイルのコピーとかしなくて大丈夫かと思ったら全々大丈夫じゃない。git が 2.29 と 2.30 で違うからか? わからない。

とりあえず、Git for Windows をアンインストールしてもうしばらく様子を見ることにする。4月ぐらいになっても、ダメなら Cygwin の git ではなく Git for Windows を使わねばならないのかもしれない。

……。

追記。

PAT (personal access token) を設定すればいいというだけの話かな? これでいいなら Git Credential Manager とかはいらなそう。

《Creating a personal access token - GitHub Docs》  
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token