Effacer les filtres
Effacer les filtres

How to change author for git commits?

18 vues (au cours des 30 derniers jours)
V R
V R le 23 Fév 2022
Réponse apportée : Ronit le 21 Juin 2024
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

Réponses (1)

Ronit
Ronit le 21 Juin 2024
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"
Regards,
Ronit

Catégories

En savoir plus sur Project Management dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by