🦍
ローカルファイルをGitHubにアップロードする
$ cd hoge_app
hoge_app $ git init
$ git add .
$ git commit -m "first_commit"
場合によっては以下のように、emailとusernameを登録しろと言われる。
edb5569] first_commit
Committer: ユーザーネーム <hoge@hogenoMacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
emailとユーザーネームを登録する
$ git config --global user.email “hogehoge@gmail.com”
$ git config --global user.name “hogehoge_fuga”
リモートブランチとローカルブランチをつなげる
$ git remote add origin git@github.com:<ユーザー名>/<アプリ名>.git
commitした内容をpushする
$ git push origin master
Discussion