- `git branch ` 会根据tag创建新的分支 - `git checkout newbranch` 切换到新的分支 - `git push origin newbranch` 把本地创建的分支提交到远程仓库 - `git branch` 查看分支 - `git branch `创建分支 - `git checkout `切换分支 - `git checkout -b `创

git help

git version  # Display the version of git.

git help  # Prints the synopsis and a list of the most commonly used commands.
git help git  # Display the git man page.

git <COMMAND> -h  # Display the brief help.
git help <COMMAND/CONCEPT>  # Display help for specific subcommand or concept. "git  <COMMAND/CONCEPT> --help"

git help --help  # Display the help of 'git help'.
git help --all  # Print all available commands on the standard output.
git help --guide  # Print a list of the useful Git guides on the standard output.

git config

git config --list  # 显示所有配置信息
git config --global --list  # 显示全局配置信息
git config --local --list  # 显示local repository配置信息(在local repository目录下执行)

git remote

git remote  # 查看remote repository信息
git remote -v  # 查看remote repository详细信息。如果没有推送权限,就看不到remote repository的地址

git status

git status  # Show the working tree status. 
git status --short  # Give the output in the short-format.

git log

git log  # 查看commit日志
git log <file>  # 查看某个文件的commit日志
git log -3  #