I'm new to Git and I searched for an answer to this but couldn't quite find what I need.

Basically, I have setup a project on my work computer, added files etc and commited to a GitHub repository. I get all that but once I got home, I wanted to download that same project and change a few files as the same user.

2 Answers
2

Anything else? Nope. Configuring Git with the same email address on both machines should do the trick since commits are associated to the committer's email address. You might have a little more work cut out for you if you're using GPG for signing tags, but that isn't in your question.

The other answer's mention of setting up an SSH key on Github isn't required for maintaining identity across machines — but not needing to type in your password will certainly make life easier. You can also use the Git credential helper to cache your Github password.

If you're working on Git projects across multiple machines, you might also want to add Dropbox into your workflow for even more power.