I have installed the new windsows10. I have created an new app password. But when I try to clone push or pull from a repository it ask for password every time.
My git version is "git version 2.40.0.windows.1"
Git asking for a password every time is a feature of git.
Hello @Muhammad Arslan ,
Welcome to Atlassian Community!
Just adding to @marc -Collabello--Phase Locked- comment, git by default does not cache the credentials for authentication, and this is most likely the reason why you are being asked to input your credentials in every git operation that interacts with bitbucket (push,pull,fetch,clone).
If you have downloaded git for windows from its official download page (Git for Windows), the installer should have come with Git Credential Manager (GCM), which is a git credential helper that securely stores the credentials in cache.
If you have disabled the installation of GCM when you installed git, you can manually download and install GCM following the instructions in this documentation.
Once GCM is installed, the next time you execute a git operation, it will prompt you for the credentials and then save it on GCM cache. For any subsequent git command, git will get the credentials from GCM cache and you will not need to provide it again.
Hope that helps! Let me know in case you have any questions.
Thank you, @Muhammad Arslan !
Patrik S
I think GCM is installed. Github does not ask for password every time on the same git installation.
For bitbucket its started to ask for the App password everytime when installed new windows and set up the git.
Than how can I disable it. because its annoying to enter App password everytime
Hey @Muhammad Arslan ,
Could you please share with us the output of the following command when executed in a Git Bash terminal?
git config --get-all --show-scope --show-origin credential.helper
This should print what is the current credential helper configured in your system at multiple scopes (local, global, system). If GCM is installed in the machine, we would expect the output of this command to return something like git-credential-manager.
@Patrik S Here is the result
$ git config --get-all --show-scope --show-origin credential.helpersystem file:C:/Program Files/Git/etc/gitconfig managerglobal file:C:/Users/Arslan/.gitconfig wincred
It looks like you're new here. Sign in or register to get started.