GoranStimac.com
How Can I Help
Stay Informed
Let's Connect

©2018 - 2021 Goran Štimac. All rights reserved.
v1.28_b2021-09-14

How to Configure Git To Remember Username and Password in a Repository

So that you don’t have to constantly enter your username and password while working with the git repository, you can save this information as follows:

1git config credential.helper store
2git config user.name "Goran Štimac"
3git config user.email "info@goranstimac.net"

Of course, instead of my name and email details, you will enter your details.

You can also use this short command if you clone a repository

1git clone https://<USERNAME>:<PASSWORD>@github.com/path/to/repo.git

IMPORTANT these commands save the login information to a file located in the repository directory

1.git/config

which means you can easily reveal user data to others so use it carefully!

Share:

comments powered by Disqus
Divi Affiliate

Let’s Talk About Your Needs

Free Consultation