This can get pretty tedious to do over and over, so for convenience I recommend storing your GitHub credentials using Windows Credential Manager or setting up an SSH key. So far so good, but if you were to try to push commits to a remote GitHub repo or clone a private GitHub repo, you would be prompted to enter your GitHub username and password. Now you can commit changes locally and they will be associated with your email and name. How to Avoid Entering GitHub Credentials Repeatedly Be sure to use the same name and email that you used in the command line so you can commit from the command line or the GUI with a consistent user. Note: If you install a Git GUI, it may also ask for your name and email to associate with commits. You can edit this file in a text editor in the future rather than use git commands via the command line. gitconfig file located at your HOMEDRIVE HOMEPATH which is typically C:\Users\Yourusername\ in Windows 10. To get started, type these commands in Git Bash: git config -global user.name "Your Name" git config -global user.email information will be stored in a. having a work name/email for work projects and a personal name/email for personal projects), but outside the scope of this post. Now that Git is installed, I recommend setting up a global git config, including your email and name to be associated with commits. Git version displayed in Git Bash Configure Name and Email for Commits Once the installation is complete, close the installer and go to Start menu > Git > Git Bash to start the git-bash command line and run git -version to confirm that Git is installed correctly. You may want to adjust settings for your particular workflow or preference. I use mostly the default installation options and they have worked just fine for me. Run the installer and choose the options you want.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |