GitHub ne supporte plus l'authentification par mot de passe pour les opérations avec git.
Dorénavant, vous devez activer le two factor authentication ou générer une clé de sécurité pour être en mesure de faire des opérations avec Git sur GitHub
Voici 2 liens qui peuvent vous aider à générer une clé de sécurité pour Git et GitHub
- https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
- https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
Ici, GitHub explique pourquoi cette nouvelle façon de faire est réquise: https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/