察看branch git branch 察看远程分支 git branch -r 基于当前分支创建本地分支 git branch 分支名 推送到远程的新分支 git push origin 本地分支名:远程分支名 commit git commit -a -m commitlog 推送更改内容到远程 git push origin 分支名 删除本地分支 git branch -D 分支名 更改author或者log git commit --amend <-m log> <--author='名 <邮件地址>'> 查看tag git tag checkout tag git checkout -b <new branch > <tag名> checkout branch git checkout -b <new branch > <remote/origin/branch名> 清理 git clean -df reset git reset --hard