Skip to content

Instantly share code, notes, and snippets.

@shirokuro331
Last active December 12, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirokuro331/4702149 to your computer and use it in GitHub Desktop.
Save shirokuro331/4702149 to your computer and use it in GitHub Desktop.
GitHubのメモ

GitHubのメモ

### GitHub のファイルを取ってくる

$ git clone https://hogehoge.git

### GitHub のリポジトリにファイルをアップする

  1. GitHub でリポジトリを作る
  2. ローカルの適当なところでフォルダをつくる
    $ mkdir sample
  3. 2で作ったフォルダへ移動
    $ cd sample
  4. git init
  5. 適当なファイルを作る or ファイルを入れる
    $ touch readme.md or コピペ
  6. 作った or 入れたファイルを add する
    $ git add *
  7. add したファイルをコメント付きで commit する
    $ git commit -m 'First commit'
  8. push する branch を指定する(?)
    $ git remote add origin [hoge@hoge.git]
  9. push する
    $ git push origin master
  10. オッケー☆
@shirokuro331
Copy link
Author

これうそ

@shirokuro331
Copy link
Author

ちょっとなおした

@shirokuro331
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment