Skip to content

Instantly share code, notes, and snippets.

@torikizi
Last active November 26, 2019 07:57
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 torikizi/f84885fe393cca3204be146c8a361328 to your computer and use it in GitHub Desktop.
Save torikizi/f84885fe393cca3204be146c8a361328 to your computer and use it in GitHub Desktop.
ローカルをgithubにpushするまで

当たり前のことだけどメモしておく

事前準備

・githubにリポジトリ作成
・gitインストール済み
・当然だけどローカルの登録したいファイルたち

実行コマンド

1.ローカルの当該フォルダへ移動
2.git init
3.vim .gitignore ※ignoreは必要なら用意する。
4.git add .
5.git commit -m "Initial Commit"
6.git remote add origin 「リポジトリのアドレス」
7.git push -u origin master

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