Set a Git username: $ git config user.name " Mona Lisa"Ĭonfirm that you have set the Git username correctly: $ git config user. When credentials storage is enabled, the first time you pull or push from the. To enable credentials storage globally, run: git config -global credential.helper store. Run the following command to enable credentials storage in your Git repository: git config credential.helper store. Setting your Git username for a single repositoryĬhange the current working directory to the local repository where you want to configure the name that is associated with your Git commits. Save Username and Password in Git Credentials Storage. Set a Git username: $ git config -global user.name " Mona Lisa"Ĭonfirm that you have set the Git username correctly: $ git config -global user.name Setting your Git username for every repository on your computer If you'd like to keep your real name private, you can use any text as your Git username.Ĭhanging the name associated with your Git commits using git config will only affect future commits and will not change the name used for past commits. The new name you set will be visible in any future commits you push to GitHub from the command line. You can change the name that is associated with your Git commits using the git config command.
0 Comments
Leave a Reply. |