智子のプログラミング奮闘記

アラフォーにてRubyを勉強中でございます。

githubへのファイルのあげ方

よく、どうやるんだったっけ?と迷います(⁎⁍̴̆Ɛ⁍̴̆⁎)

ので、メモしておきます。

 

 

あげ方

githubのHP

1 「Start a project」をクリック↓

f:id:tomoko-air-tokyo:20190613225503j:plain

 

2 「Repository name」を入力して、「Create repository 」をクリック↓

f:id:tomoko-air-tokyo:20190613225627p:plain

 

3 Codeで、SSHプロトコルのURLをコピー↓

f:id:tomoko-air-tokyo:20190613221503p:plain

 

ターミナル上

1 $ cd "githubにあげたいフォルダ"

2 $ git add -A

3 $ git commit -m "コミットメッセージ"

4 $ ssh -T git@github.com

5 githubのパスワード入力

6 $ git remote add origin git@github.com:tomoko/heroku_test_app.git

  ※赤字→githubのHP上でコピーした、SSHプロトコルのURL

7 $ git push origin master

8 githubのパスワード入力

 

以上、githubの自分のページを見ると、最初の「Repository name」を入力で付けた名前のところに、ファイルが上がってます。

 

 

あとがき

プログラミング奮闘記をご覧いただき、誠にありがちょございますっ

 

こんなあんちょこを見ないとgithubにあげられない智子でございます(⁎⁍̴̆Ɛ⁍̴̆⁎)

精進してまいりますっ