0

I've set up a GitHub repository on my laptop today. I can submit code and all ... but now I want to have the same access with my PC. Do I need to configure the SSH keys etc all over again, with every box I want to work with?

4

3 回答 3

3

You need SSH access on all computers that will commit code or sync with a private GitHub repository. You have two choices:

  1. Use the same SSH key on all your client computers.
  2. Use a different SSH key on each client computer.

Either way, your authorized SSH keys must be configured on GitHub to allow proper access. Obviously, option #1 is easier to manage, unless your Windows or Mac SSH client doesn't handle OpenSSH keys properly.

于 2012-05-13T22:15:11.297 回答
0

Basically yes. You have to set up the security stuff, which is kind of unrelated to git itself. In the other PCs, you have to define a remote repository that contains the address of the repository on your computer. Then you can push to/pull from each other's repositories.

于 2012-05-13T22:13:56.337 回答
0

Git with apache (http or https), Nice and easy way (in my opinion).

  1. Server: Configuring Apache HTTPS In order to share your repository. (authorization with htaccess)

  2. Client: Install tortoiseGIT, in order to checkout, commit, update or branch.

于 2012-05-13T22:33:46.683 回答