Bug/Git

[Git] BitBucket asks multiple time for username and password

brightlightkim 2022. 4. 27. 05:08

If the BitBucket asks your username and password multiple times, you can save your credentials in

 

.git-credentials

with the following information in your root directory.

 

//.git-credentials
https://[username]:[password]@bitbucket.org

 

Then to point your system to this file, you need to edit .gitconfig file

//.gitconfig

[user]
	email = [setUserEmail]
    	name = [setUsername for this WSL]
    
[credential]
        helper = store
        interactive = false
        modalPrompt = false

The helper = store will help the computer to find the .git-credentials file.

 

If you do the npm install again this time, it should work all the time.