Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why I have to enter password everytime when I try to clone the private repository

Muhammad Arslan March 31, 2023

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 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2023

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

Muhammad Arslan April 11, 2023

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. 

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2023

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.

Muhammad Arslan April 17, 2023

@Patrik S  Here is the result 


$ git config --get-all --show-scope --show-origin credential.helper
system file:C:/Program Files/Git/etc/gitconfig manager
global file:C:/Users/Arslan/.gitconfig wincred
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2023

Hello @Muhammad Arslan ,

Looks like your global git configuration is trying to use wincred, instead of GCM, as the credential helper.

In this case, could you please run the following command to set the manager as the credential helper at the global level? 

git config --global credential.helper manager

 Once you execute that command, you can try testing a git command and check if you are still being prompted for credentials. Please note that after you do the change, the first time you execute the git command it's expected that you will still be asked for credentials, it will only be cached in the subsequent git commands.

Thank you, @Muhammad Arslan !

Patrik S

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2023

Git asking for a password every time is a feature of git.

Muhammad Arslan April 11, 2023

Than how can I disable it. because its annoying to enter App password everytime

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events