Change email address in Git

前端 未结 5 1513
耶瑟儿~
耶瑟儿~ 2021-01-30 00:17

I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using jenkins. Now I made a typo while installing my Git locally. Like @ab.com instead of @

5条回答
  •  暖寄归人
    2021-01-30 01:16

    To set your global username/email configuration:

    1. Open the command line.

    2. Set your username:

      git config --global user.name "FIRST_NAME LAST_NAME"

    3. Set your email address:

      git config --global user.email "MY_NAME@example.com"

    To set repository-specific username/email configuration:

    1. From the command line, change into the repository directory.

    2. Set your username:

      git config user.name "FIRST_NAME LAST_NAME"

    3. Set your email address:

      git config user.email "MY_NAME@example.com"

    4. Verify your configuration by displaying your configuration file:

      cat .git/config

    For more information and for other version control systems .. => SeeThis

提交回复
热议问题