user933752
user933752

Reputation: 1

Getting started with Git on Mac

I am new to Git (and to my Mac). I installed it on my Mac, but don't have a clue where to go from here. My professor emailed me a public/private ssh key pair - where/how do I insert these keys so that I can clone his code?

Upvotes: 0

Views: 163

Answers (2)

Michał Szajbe
Michał Szajbe

Reputation: 9002

You don't need public/private key of your professor to be able to clone his repository.

What you need to do is to generate your own keypair with ssh-keygen and send the public key (~/.ssh/id_rsa.pub file) to your professor. He should set up the repository to allow authentication with this key.

On the side note: private key, as the name suggest, is private. You don't want to share it with anyone. You also don't want to use a private/public key pair you got from someone.

Upvotes: 3

Matthew Rankin
Matthew Rankin

Reputation: 461157

I'd start by reading the Pro Git book, which is available for free online at progit.org.

Upvotes: 0

Related Questions