How to save username, email and password globally in Github?

featured Image

In this article, we will see how to save GitHub username, email, and password globally on your computer.

While working with github it is better to save your username and password on your computer so that you don’t have to type your github username and password every time you have to pull or push your changes in git.

So what saving globally means?

The global values mean the value will be applied to a particular user of an operating system. This information is stored in the ~/.gitconfig file in our home directory.

Save GitHub username and password globally

Follow the steps below :

To save the Git username globally, run the git command:

git config --global user.name "Your User Name"

To save the Git email address globally, run the git command:

git config --global user.email "Your Github Email"

Now all your future commits will be referred to this information.

Once you have saved your username and email, the next time you push your commit, it will show you a password prompt.

Enter the password and it will be saved.


Related Topics:

How To Check GitHub Email Address And Username From Terminal?

How to change git username and password on PC

Open Github Repository Directly In Vscode In Browser Online

How to add empty folder/directory in Git

Resolve- Refusing To Merge Unrelated Histories Git Error

How to check Git email address and username in terminal?

Related Posts

git commands with example

Top 40 Git commands with Examples

GitHub has become an essential tool for developers to manage, store, and collaborate with other developers on software projects. With its simple powerful git-based version control system, GitHub allows users…

Read more
Check GitHub Account in the Terminal

Check GitHub Account in the Terminal

GitHub is an integral tool for developers to store, manage, and collaborate on software projects with other developers. And as we work more and more in the command line it…

Read more
featured Image

How to make list of objects in Netlify CMS using list and object Widget

Here in this Netlify CMS tutorial we will how easily we can make a list of objects using list and object widgets. This will allow us to add multiple objects…

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *