Ryusuke Fuda's Tech Blog

Softweare Enginier about Web, iOS, Android.

githubリポジトリ作成

リポジトリ作成

git init

■ 全ファイルadd

git add .

■ コミット

git commit -m"initial commit"

■ githubへいき、create a new repo でリポジトリつくる

■ リモートリポジトリを加える

git remote add origin git@github.com:{ユーザー名}/{作ったリポジトリ名}

リポジトリから変更を取得

git fetch

■ 変更されたファイルの一覧を表示する

git status

■ マージ

git merge origin/master

■ リモートリポジトリ更新

git push

■ githubへもどり更新されてるのを確認

参照)
https://jp.linux.com/linux-community/blog/236-mirainoitsuka/403358