clone関連
cloneする時、トップのディレクトリ名を変更する
grit -> mygrit になる
git clone git://github.com/schacon/grit.git mygrit
commit関連
削除フィルをインデックスに反映する
commitは追加、編集と同様
git add -u
branch関連
remote branchからlocal branchを作成
git checkout -b [new local branch] [remote branch]
git checkout -b feature/fixbugremotes/origin/feature/fixbug
masterの修正をbranchにmerge
git checkout [branch]
git merge master
git stash
作業内容の一時保存
git stash save
stashの一覧
git stash list
git-flowの開発
初期化
cd GIT_ROOT
git flow init
機能用のbranch作成
git checkout [devekop_branch]
git flow feature start [branch_name]
tag
tag設定
注釈付き版
git tag -a v1.0 -m 'my version 1.0'
軽量版
git tag v1.0
tag確認
一覧
git tag
詳細
git show v1.0