How to save username, email and password globally in Github?
This post is about how to save username, email and password globally in Github using terminal.
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?
Related Posts
Fix 'failed to push some refs to' Git Errors
If you have encountered the "error: failed to push refs to" error in git, then follow this solution provided in this article to easily fix the error.
[Fixed] GitHub "fatal: remote origin already exists" error
Find out to fix "fatal: remote origin already exits" github error while working with remote git repository.
Solved "No such remote origin" Git Error Fatal
Short article on how do I fix remote origin already exists git error faced when trying to push to remote origin in Github and BitBucket.
How to remove node_modules from github or bitbucket
Step by step process to remove node_modules from github or bitbucket after the folder is added to the repository with the help of gitignore file.
