Set your email address: git config --global user.email "OUR_NAME@example.com" Verify your configuration by showing username and email # show username git config user.name # show email git config user.email; 3. Git - set username and email configuration for single repository. Open command line (eg git bash) and change directory into specific
git config - How to know the git username and email saved While configuring git I ran these two commands: git config --global user.name "My Name" git config --global user.email "myemail@example.com" However, I doubt whether I made a typo or not. So, is there any command to know the name and email which git saved during configuration? github - How to configure Git user name and email? - Ask git config --global user.email "bob@bob-smith-industries.net" git config --global user.name "Bob Smith" As to what to put here specifically, that's up to you. Keep in mind, however, where the git project resides.
sudo apt-get install git I even set the username and email in git config using this: $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com But when I type the command. git config --list It shows only these two on the list as: user.name=John Doe user.email=johndoe@example.com
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com また、もし`--global`オプションを指定するのであれば、Gitはその後、そのシステム上で行なう(訳者注:あるユーザーの)全ての操作に対して常にこの情報を使うようになるため、この How to Install and Get started with Git on Mac
Если вы используете Git для Windows версии 2.х или новее, то так же обрабатывается файл конфигурации уровня системы, который имеет путь C:\Documents and Settings\All Users\Application Data\Git\config в Windows XP или C:\ProgramData\Git\config в Windows Vista и новее.
git config --global user.email "bob@bob-smith-industries.net" git config --global user.name "Bob Smith" As to what to put here specifically, that's up to you. Keep in mind, however, where the git project resides. Git - First-Time Git Setup If you want to check your configuration settings, you can use the git config --list command to list all the settings Git can find at that point: $ git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto Incorrect Git user name and email on Windows - Stack Overflow