//保存當(dāng)前工作內(nèi)容,可以用git stash
git commit //版本號(hào) A
//回退到Bug版本
git reset --hard {版本號(hào)}
git checkout -b fixBug
git add
git commit
git checkout master
git merge fixBug
git pull
git push
git reset --hard {A}

//回滾單個(gè)文件
git checkout {版本號(hào)} 文件名
git add .
git commit
//stash刪除
git stash drop
//工作流程限定
Git Flow
git flow init
git flow feature start {分支名稱}
git flow feature finish {分支名稱}
git flow release strat {版本號(hào)}
git flow release finish {版本號(hào)}