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 #