Change email address in Git

前端 未结 5 1512
耶瑟儿~
耶瑟儿~ 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:06

    According to the git documentation, all you should have to do is re-run

    $ git config --global user.name "John Doe"  
    $ git config --global user.email johndoe@example.com  
    

    Then just check to make sure the change took effect

    $ git config --list
    

    This is listed in the Pro Git book, written by Scott Chacon and Ben Straub

    1.6 Getting Started - First-Time Git Setup

提交回复
热议问题