LoginSignup
1
2

More than 5 years have passed since last update.

githubでリポジトリ作成

Last updated at Posted at 2017-02-09

前提

  • 2017/2/10時点
  • 無料の範囲
  • 僕の環境のmac(10.9.5)
  • git version 1.8.5.2 (Apple Git-48)

github

手順

githubにいく

「New repository」

自分のID/test
descriptionは適当
public

「Create repository」

その後ターミナルへ。

mkdir test
cd test
git init
vim aaa  (testとかかいとく)
git add aaa
git commit -m "test commit"
git remote add origin https://github.com/kanokanoka/test.git
git push -u origin master

これでうまくいっている。
githubに書いていた通り。
僕はsshのkeyとかはいつ登録したのだろう。必要らしいです。

いろいろと読んだところ、originのところはなんでもいいらしい。#defineみたいなものなのかな。
あとは、bbbとかいうファイルを作ったら、同じようにaddしてcommit してpushしたらいい感じ。

加筆計画

  • 文をもうちょっとまともに
  • 鍵の話とか
  • 例をもうちょっとまともに
  • remoteのあたりとか記法多そう
  • 試した感じだと、リポジトリ作ってgit clone 〜〜.gitしたほうが簡単かも〜
1
2
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
1
2