linux – Git asks for username everytime I push – Stack Overflow

linux – Git asks for username everytime I push – Stack Overflow

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:

url = https://username@repository-url.com

via linux – Git asks for username everytime I push – Stack Overflow.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s