強制性回滾到某一版本: git reset --hard <commit_id>
git log
git status
git pull 遠程地址 master
本地電腦新建一個分支: git branch 新分支名字
查看本地所有已存在的分支: git branch
將新分支發佈在github上:git push origin 新分支名字
切換到新分支:git checkout 新分支名字
提交分支:git push origin 遠程端分支名字
在本地刪除一個分支:git branch -d 本地分支名字
遠程刪除一個分支:git branch -r -d origin/hongchangfirst
參考博客:http://blog.sina.com.cn/s/blog_7101508c010147s6.html
https://www.douban.com/note/189603387/