Gitコマンドの覚書
http://www.backlog.jp/git-guide/intro/intro1_2.html
http://www.backlog.jp/git-guide/intro/intro1_3.html
http://www.backlog.jp/git-guide/stepup/stepup1_1.html
現在使用しているbranchの先頭を表す名前
ファイルの変更内容を一時的に記録しておく領域。
ファイルやディレクトリの追加・変更を、Repositoryに記録する
branchする
git branch <new-branch>
checkoutする。
git checkout <existing-branch>
git checkout -b <new-branch>
git checkout -b <new-branch> <existing-branch>
mergeする。
git merge <branch>
git merge --no-ff <branch>
git branch -d <experimental>
git branch -D <experimental>
git clone は既存の git repositoryのclone (コピー) を作成する
git clone <repo>
git clone <repo> <directory>
fetchする。
git fetch <remote>
git fetch <remote> <branch>
pullする。
git pull <remote>
git pull --rebase <remote>
pushする。
git push <remote> <branch>
git push <remote> --all
git push <remote> --tags
https://www.atlassian.com/ja/git/tutorial/undoing-changes#!reset
https://www.atlassian.com/ja/git/tutorial/undoing-changes#!clean
変更のcommit
git commit
git commit -m "<message>"
commitのrevert
git revert <commitの"SHA-1 id">
branchの確認
git branch
git branch -r
git branch -a
git branch -m <branch>
logの確認
git log
git log -n <limit>
git log --oneline
git log --stat
git log -p
statusの確認
git status