Git Hub and Azure Ropository are moving away from passwords to other means of authentication. There are a few ways to authenticate:
- Personal Access Tokens (PAT) embedded in your app.
- Token keys used by SSH.
- Two step identification.
- Use of PATs as passwords entered when authentication is needed.
The PATs are used in applications that access accounts such as your repositories. The PAT is stored securely in the app and then used for authentication. If you are using the command line, then token keys or two step identification might be better. The PATs can be entered at the time authentication is needed, but you have to know the PAT, that does not seem like their intended use.
There are a couple help pages to learn about Personal Access Tokens
Github recommends using Git Credential Manager Core