15 down vote
You can accomplish this in the .git/config file of your local repository. This file contains a section called ‘remote’ with an entry called ‘url’. The ‘url’ entry should contains the https link of repository you’re talking about.
When you prefix the host url with your username, git shouldn’t be asking for your username anymore. Here’s an example: