Skip to content

Instantly share code, notes, and snippets.

@kazusato
Created January 11, 2020 10:46
Show Gist options
  • Save kazusato/d054820e16b037ea3a3a54b32975e0b6 to your computer and use it in GitHub Desktop.
Save kazusato/d054820e16b037ea3a3a54b32975e0b6 to your computer and use it in GitHub Desktop.
Azure DevOps Git Repo Personal Access Token Authentication

Related documents

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

https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page

to create PAT.

Git has a feature to store credentials as written in the following document (in Japanese):

https://git-scm.com/book/ja/v2/Git-%E3%81%AE%E3%81%95%E3%81%BE%E3%81%96%E3%81%BE%E3%81%AA%E3%83%84%E3%83%BC%E3%83%AB-%E8%AA%8D%E8%A8%BC%E6%83%85%E5%A0%B1%E3%81%AE%E4%BF%9D%E5%AD%98

If you use the "store" helper without specifying a file path on Linux, your credential is stored in ~/.git-credentials without encryption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment