Toolbox
Toolbox

Reputation: 2491

git single user - several computers / repositories

I am introducing git but currently working by myself in git environment. I use stationary, virtual servers, local virtual servers, and laptop. I need to be able to identify from where I have done changes. How can that be solved?

At later stage I might of course introduce more resources that would work in the git environment.

To clarify: Since I am working as a single developer it is more important for me to track from which machine the commits/pull/fetch was done, rather then user/user.email.

Should I add different user credentials, like this?

[user.email]

[user.name]

Upvotes: 1

Views: 40

Answers (1)

Michael Barany
Michael Barany

Reputation: 1669

I can think of two solutions:

  1. Use separate emails/names as you mention above
  2. Sign your commits with different private keys (one for each machine). See https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work

Upvotes: 0

Related Questions