LoginSignup
6
6

More than 5 years have passed since last update.

GitHubを利用し、コードを公開する方法

Last updated at Posted at 2014-11-12

準備
 GitHubのアカウント取得

SSH keyの設定
 『公開鍵』の登録
   GitHubにPCからコードを送る際にSSHという規格を利用する
 登録方法
  ①ターミナル
    $ssh-key -t rsa -C "your_mail@example.com"
  ②GitHubのprofileページのSSH keysに公開鍵の内容をコピーして貼付ける
  ③実施にGitHubで利用できるか確かめる
   $ssh -T git@github.com

実際に使ってみる
 ①New repository
 ②Repository name
 ③Publicにチェック
 ④Initialize this repository with a READMEにチェック

PCにリポジトリのクローンを持ってくる
 ①クローン
 ②$git clone [URLのコピー.git]
   ローカルにフォルダができる!
 ③公開するファイルを入れる

参照元
http://albatrus.com/main/web/6165

6
6
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
6
6