Get the App
SLTechnology News&Howtos  ›  Development  › 

How to modify the author of git

Shulou Source: shulou.com Published: 2022-06-02 01:28:50 10月04日 Update

This article mainly explains "how to modify the author of git". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to modify the author of git".

When the code is submitted to git, it shows who submitted the commit. If the author is not shown correctly, it will sometimes be embarrassing. Be sure to change user.name and user.email together. Github will use the mailbox prefix as the author's name.

The modification method is as follows:

/ / set global user name and email git config-- global user.name "Author Name" git config-- global user.email "Author Email" / / set local project library git config user.name "Author Name" git config user.email "Author Email". Thank you for reading. This is the content of "how to modify the author of git". After the study of this article, I believe you have a deeper understanding of how to modify the author of git. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Learning content mailbox wrong awkward code author global prefix name that is ideas situations articles ways time is by more sometimes users Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno MariaDB Apple Redmi