Skip to content

Commits by different users on a shared machine and repository #77

Answered by drdanz
gsaponaro asked this question in Q&A

You must be logged in to vote

If you are using different repositories you can also set the name and email in just for a specific repository, but it's not a very clean solution, and I don't know if it is the case here.

You can use git commit --author="John Doe <john.doe@example.com>" to change the author when you make a commit.

Another option is to use the environment variables:

GIT_AUTHOR_NAME
GIT_AUTHOR_EMAIL
GIT_COMMITTER_NAME
GIT_COMMITTER_EMAIL

"Committer" is the "iCub User" in the picture you added.

Replies: 9 comments

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by pattacini

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #77 on December 08, 2020 16:06.