Git杂项命令表

命令 简要说明
git bisect–helper 由 git bisect  命令调用,确认二分查找进度
git check-attr 显示某个文件是否设置了某个属性
git checkout-index 从暂存区拷贝文件至工作区
git cherry 查找没有合并到上游的提交
git diff-files 比较暂存区和工作区,相当于 git diff –raw
git diff-index 比较暂存区和版本库,相当于 git diff –cached –raw
git diff-tree 比较两个树对象,相当于 git diff –raw A B
git difftool–helper 由 gitdifftool  命令调用,默认要使用的差异比较工具
git get-tar-commit-id 从 git archive  创建的 tar 包中提取提交 ID
git gui–askpass 命令 gitgui  的获取用户口令输入界面
git notes 提交评论管理
git patch-id 补丁过滤行号和空白字符后生成补丁唯一 ID
git quiltimport 将 Quilt 补丁列表应用到当前分支
git replace 提交替换
git shortlog 对 git log  的汇总输出,适合于产品发布说明
git stripspace 删除空行,供其他脚本调用
git submodule 子模组管理
git tar-tree 过时命令,请使用 git archive
git var 显示 Git  环境变量
git web–browse 启动浏览器以查看目录或文件
git whatchanged 显示提交历史及每次提交的改动
git mergetool lib 包含于其他脚本中,提供合并 / 差异比较工具的选择和执行
git parse remote 包含于其他脚本中,提供操作远程版本库的函数
git sh setup 包含于其他脚本中,提供 shell  编程的函数库