How to change author for git commits?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi, is there a way to change the author which shows up when doing a commit in the Git integration in a MATLAB/Simulink Project?
To what kind of property of the host machine is it linked?
Thank you
댓글 수: 0
답변 (1개)
Ronit
2024년 6월 21일
Hi,
Yes, there is a way to change the author for commits in Git, including when working within a MATLAB/Simulink Project. The author information for a commit is determined by the ’user.name’ and ’user.email’ configuration settings in Git, not by any property of the host machine.
Here is how to change the author’s name and email address globally by using the following commands in your terminal or command prompt:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
For more details, please refer to this page - https://stackoverflow.com/questions/750172/how-do-i-change-the-author-and-committer-name-email-for-multiple-commits
Regards,
Ronit
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!