githubの使い方

とりあえずサクッと作るためのコマンド一覧です。

初期化をする
    git init

     とりあえず初期化。.gitうんちゃらができる。

    git config --global user.email "example@example.com"

     メールアドレスは適当に変更しましょう。

    git config --global user.name "Ippan Tarou"

     名前は適当に変更しましょう。

    git remote add origin https://github.com/hogehoge/hoge.git

     ネット上の書き込み場所を定義。hogehoge, hoge.gitは環境に合わせましょう。

gitで管理するためのファイル追加

     git add .

      今いるディレクトリ以下を登録する

書き込むものを固定化

     git commit -m "comments"

        ""の中はコメントを書く。

書き込み

     git push origin master