GoranStimac.com

How can I help

Stay informed and learn

Let's connect

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:

git config credential.helper store
git config user.name "Goran Štimac"
git 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

git 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

.git/config

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

Newer post

How to change symbolic link permissions on Linux?

Older post

How to create a MySQL user and assign permissions in AWS RDS on Ubuntu Linux?

comments powered by Disqus

Looking for an IT professional?

Book a call Email me