Authentication optoins for Azure DevOps Git Repo are listed in the following document.
https://docs.microsoft.com/en-us/azure/devops/repos/git/auth-overview?view=azure-devops
See
to create PAT.
Git has a feature to store credentials as written in the following document (in Japanese):
If you use the "store" helper without specifying a file path on Linux, your credential is stored in ~/.git-credentials without encryption.