LoginSignup
213
206

More than 5 years have passed since last update.

GitHubにあるリポジトリをローカルにcloneする方法

Posted at

自分用メモ。
会社のPCやら、家のPCやら、違う環境で作業している場合に、
新しいプロジェクトを立ち上げた時とかGitHubからローカルにcloneしたい時のやり方。
環境はMacっす。

リポジトリのページからclone URLをコピー

GitHubでcloneしたいリポジトリのページに行き、
画面右下のコピーボタン(下図)を押す。

スクリーンショット-2014-06-11-18.02.05.png

terminalでgit cloneする

terminalでcloneしたいディレクトリに移動し、
git cloneのあとに、先ほどコピーしたものをペーストする。

cd projects
git clone git@github.com:masamitsu-konya/example.git

これでできるはず。

213
206
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
213
206