git-hubのインストール方法
1.https://github.com/ でユーザー登録
2.最新版のgitをインストール
3.Webからリポジトリーを作る
3.下記の通りやってコミット
https://help.github.com/articles/create-a-repo
======
データの保存には、必ず名前とメールアドレスが必要
git config --global user.name "xxxxxxxxxxx"
git config --global user.email "xxxxxxxxxxx@hotmiai.com"
git config --global color.ui true
git config -l
=========================
git --config --help
=========================
・git init
・ファイル編集
■git diff で差分確認
or ■git status ではどのエリアにいるかわかる
・git add test.txt ←ステージングエリアにのせる
=======
ここで載せたくない場合はgit checkout -- ファイル名
=======
ステージングエリアにのってからは、
git diff --cached がgit diffの代わり
git status がどのエリアにいるかわかる
・git commit -m 'コメント' ←コミット
■コミットしたらgit log
オプション --oneline
-p 変更箇所も
--stat ファイルの確認
================================
================================
git diff
git add .←これで全部のファイルコミットできるっぽい
git add ファイル名
SVNの違いはコミットしても、本番反映はされない
git status ←変更したサマリーを見れる
git log ←コミットした履歴を見れる