git命令

$ git help

git –version –quiet

The most commonly used git commands are:
add — 添加到本地索引区 Add file contents to the index
bisect — 二进制查找bug修改 Find by binary search the change that introduced a bug
branch — 增删改查本地/远程分支 List, create, or delete branches
checkout — 从本地仓库签出到工作目录 Checkout a branch or paths to the working tree
clone — 克隆远程或本地仓库 Clone a repository into a new directory
commit — 提交到本地仓库 Record changes to the repository
diff — 显示提交之间/提交与本地工作区的差异 Show changes between commits, commit and working tree, etc
fetch — 从另外一个仓库中取 Download objects and refs from another repository
grep — 模式查找 Print lines matching a pattern
init — 初始化空仓库或重新初始化 Create an empty git repository or reinitialize an existing one
log — 显示提交log信息 Show commit logs
merge — merge开发代码 Join two or more development histories together
mv — 移动本地/远程文件/目录/链接 Move or rename a file, a directory, or a symlink
pull — 取代码并merge到当前库 Fetch from and merge with another repository or a local branch = fetch + merge
push — 将当前库的修改更新到远程 Update remote refs along with associated objects
rebase — 重新定位HEAD到最新 Forward-port local commits to the updated upstream head
reset — 重置当前HEAD到指定状态 Reset current HEAD to the specified state
rm — 删除工作区文件,索引区一并删除 Remove files from the working tree and from the index
show — 查看对象 Show various types of objects
status — 查看工作区状态 Show the working tree status
tag — 增删改查tag Create, list, delete or verify a tag object signed with GPG