检查当前文件状态:git status
跟踪新文件,暂存已修改文件:git add <file>
打带注释的标签:git tag -a <tag> -m ""
在历史版本上打标签:git tag -a <tag> 9fceb02
查看指定标签的版本信息:git show <tag>
带注释提交:git commit -m ""
新建分支:git branch <new-branch>
分支改名:git branch -m <old-branch> <new-branch>
分支删除:git branch -d <branch>
分支变基:git rebase <branch>
分支合并:git merge <branch>
查看已|未合并的分支:git branch [--merged] | [--no-merged]
切换到分支:git checkout <branch>
以行形式显示提交历史:git log --pretty=oneline
将master分支推送到远程仓库:git push <remote> master
将指定标签推送到远程仓库:git push <remote> [tagname]
推送所有标签到远程呢个仓库:git push <remote> [--tags]