●リポジトリを作成し、Gitのバージョン管理下に置く時
1、目的のフォルダに移動
2、リポジトリを作成$ git init
3、ステージ$ git add .
4、コミット$ git commit -m 'init'
●更新する時
git diff
git add .
git commit
まとめ
git init
フォルダ内にリポジトリを作成
git add
ファイル名 ファイルを選択してステージさせる
git commit
コミットする git commit -m 'message'
git status
状況を確認
git diff
差分を表示する
git log
過去のコミット履歴