//獲取
git clone
//下載?
git pull
//判斷狀態(tài)?
git status
//添加
git add
//本地提交
git commit? -m? ""
//推送到服務(wù)器?
git push
//創(chuàng)建附注標(biāo)簽?
git tag -a v0.1.2 -m “0.1.2版本”
//將tag推送到服務(wù)器?
git push origin v0.1.2
//查看當(dāng)前分支
git remote -v
//強(qiáng)制恢復(fù)到一個(gè)版本? git reset —hard
git reset 3eae9f7e411a1c9081d3918b0da1233ae181cbfb —hard
//產(chǎn)看分支
git remote -v
//合并提交
git rebase? -i 版本號(hào)
//切換到那個(gè)版本
git checkout? -b? [issue-2]分支名稱
//保存分枝
git stash save
//恢復(fù)分枝
git stash pop
//產(chǎn)看服務(wù)器變化
gitk
合并
http://blog.csdn.net/gouboft/article/details/8450696