Git-Credential-Manager-for-Windows
                                
                                
                                
                                    Git-Credential-Manager-for-Windows copied to clipboard
                            
                            
                            
                        git credential-manager store serializes username into url
I am trying to integrate Source Link into our development process. Our repositories are hosted in a way that public access is denied. The only way to make Visual Studio include some credentials into GET request is by using option Fall back to Git Credential Manager authentication for all Source Link requests. It works fine. If credentials exist for given hostname, GCM provides them. If not, GCM prompts for user-pass prompt and stores them for later use in Windows Credential Manager.
Now i want to simplify and automate set up process for developers. Instead of manually going into Windows Credential Manager i thought it would be possible to do something like this:
git credential-manager store < credentials.txt
where credentials.txt is:
protocol=https
host=HOST
username=USER
password=ACCESS_TOKEN
This gets stored in Windows Credential Manager like this:
Address: git:https://USER@HOST
Username: USER
Password: ACCESS_TOKEN
Visual Studio does not recognize this! It does work if Address part is git:https://HOST, but git credential-manager store appends USER@ and i can not find a way around this behavior.
Simple way to reproduce this:
- create file 
store.txt: 
protocol=https
host=HOST
username=USER
password=ACCESS_TOKEN
- create file 
get.txt: 
protocol=https
host=HOST
- write credentials: 
git credential-manager store < store.txt - this should work but prompts for credentials instead: 
git credential-manager get < get.txt 
Expected behavior:
- Windows Credential Manager entry has address without 
USER@part storeandgetwork for given protocol+host
My version info:
$ git --version
git version 2.21.0.windows.1
$ git credential-manager version
Git Credential Manager for Windows version 1.18.4