The following error occurred while using Git to clone the code on the TFS server to Local:
for ' https://***.visualstudio.com/***project/_git/***/ '
Workaround:
Read the original text (https://roadtoalm.com/2015/07/22/using-personal-access-tokens-to-access-visual-studio-online/)
People who use Visual Studio Online for a while is probably familiar with the alternate credentials. These is used when accessing the REST API or when using a external client for accessing your Git repositories.
You configure your alternate credentials on your [My Profile] page and fill a username and password of your choice.
Once you enable your credentials, you can use these credentials when doing a REST call or (easier to test) clone a Git rep Ository
This is great and not the most secure to doing things.
Personal Access Tokens
In the update of July 7th, we are now having the ability to use Personal Access Tokens as a alternative to the Alternate Creden Tials. Instead of sending our username and password over the wire we a now use a secure token so we can scope to a timeframe a nd to Functionality within VSO. On the [My Profiles] page you can configure one or more Personal Access Tokens. For example a tokens to access Code Features.
When you create the token, you see a tokens (only visible after creation!), so you should copy and keep safe.
This token alone are sufficient to authenticate against VSO. So, if you are now clone a Git repository, you are only having the to fill with this token in the Password box. Username can is empty or any value
The great thing is so you can revoke rights or the tokens afterwards and make sure that people cannot access stuff Anymor E.
Hope this helps!
Insufficient permissions for GIT access TFS (Using Personal access Tokens to access Visual Studio Online)