Help us understand the problem. What is going on with this article?

Githubでレポジトリをクローンする時はsshではなくhttp推奨

More than 3 years have passed since last update.

http通信の方がssh通信より高速なため、git cloneする際はhttpでクローンする。

$ git clone https://github.com/user/repo.git

http通信になっているか確認する。

$ git remote -v
origin https://github.com/user/repo.git (fetch)
origin https://github.com/user/repo.git (push)

ただし、httpでクローンすると、pushする際に毎回ユーザ名とパスワードを聞かれるため面倒。http通信からssh通信に変更する。

$ git remote set-url origin git@github.com:user/repo.git

ssh通信に変更されているか確認する。

$ git remote -v
origin git@github.com:user/repo.git (fetch)
origin git@github.com:user/repo.git (push)

これでssh通信に変更される。

参考URL

http://tech.nitoyon.com/ja/blog/2013/01/11/github-clone-http/
http://qiita.com/keisuke2236/items/df7d4c2cf621eeddd468

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away