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 # 查看最近3次的commit日志 git log -p # 补丁格式显示每个提交之间的具体差异
git log --stat # 显示每个提交的文件修改统计信息 git log --oneline # 逐条简洁显示commit日志
git log --oneline --graph # 图形化显示分支合并历史
git log --oneline --graph --decorate # 图形化显示分支合并历史,包含commit的引用信息 git log --merges # 只显示merge commit日志
git log --no-merges # 显示过滤merge commit之后的git log git log --author=<author name> # 搜索指定作者的提交历史
git log --grep=<pattern> # 搜索commit描述匹配<pattern>的commit.
git log --after="2016-12-1" --before="2017-1-1" # 显示某个时间段的commit日志

git shortlog

git shortlog  # Summarize 'git log' output order by the author
git shortlog --summary # Suppress commit description and provide a commit count summary only.
git shortlog --numbered # Sort output according to the number of commits per author instead of author alphabetic order.
git shortlog --email # Show the email address of each author.

git reflog

git reflog  # 显示命令日志

git show

git show  # 查看上一次commit的内容:
git show <commit id> # 查看某次commit的内容
git show <commit>:<filename> # 显示某次提交时,某个文件的内容

git diff

git diff  # 显示暂存区和工作区的差异
git diff HEAD # 显示工作区与当前分支最新commit之间的差异
git diff <commit-id-1>..<commit-id-2> # 查看commit之间的对比
git diff <branch-name-1> <branch-name-2> # 查看branch之间的对比

git blame

git blame <file>  # Show what revision and author last modified each line of a file.

Git - 信息查看的更多相关文章

  1. 1git命令的使用,查看git仓库状态,添加文件到git跟踪,git提交,查看git分支,查看git仓库日志信息,切换git分支,解决git分支合并后出现冲突的问题

    1新建一个存储git的文件夹,命令是: toto@toto-K45VD:~$ mkdir gitfolder 2初始化一个git仓库,命令是: toto@toto-K45VD:~$cd gitfold ...

  2. 3.Git基础-查看当前文件状态、跟踪新文件、暂存文件、忽略文件、提交更新、移除文件、移动文件

    1.检查当前文件状态 --  git status  git diff  git diff --staged   git status :我们可以使用 git status 来查看文件所处的状态.当运 ...

  3. git log 查看提交记录,参数:

    git log 查看提交记录,参数:-n (n是一个正整数),查看最近n次的提交信息 $ git log -2 查看最近2次的提交历史记录 -- fileName fileName为任意文件名,查看指 ...

  4. git log 查看提交记录

    git log 查看提交记录 1. git log 查看提交历史记录2. git log --oneline 或者 git log --pretty=oneline 以精简模式显示3. git log ...

  5. git log 查看提交历史

    文章出处http://blog.csdn.net/wh_19910525/article/details/7468549  git log  查看 提交历史 在提交了若干更新之后,又或者克隆了某个项目 ...

  6. git log 查看某文件的修改历史

    先进入此文件所在的目录下 1. git log --help 所有的git命令都可以通过git manual查看 在synopsis中可以看到公式  git log [<options>] ...

  7. 版本管理·玩转git(日志查看与版本切换)

    如果你想更清晰地学习git,你必须要了解3个重要区域. 工作区:即开发者的工作目录 暂存区:修改已被记录,但尚未录入版本库的区域 版本库:存储变化日志及版本信息 当你在工作区进行开发工作时,git会记 ...

  8. redis的服务器信息状态信息查看

    Redis的服务器信息状态信息查看 Redis的提供了一个信息命令查看Redis的服务器的信息,类似的Linux提供一个顶级命令查看系统的信息 redis-cli info # Server #服务器 ...

  9. git 命令 查看历史提交 git log

    怎么理解git commit 命令 git commit 相当于 我们虚拟机快照操作,每次执行commit命令 相当于对本地仓库做一次快照,保存了当时仓库的状态, git commit -m 加上的& ...

随机推荐

  1. 前端之javascript的DOM对象和标签

    一 DOM对象介绍 什么是HTML DOM 1.1 HTML Document Object Model(文档对象模型) 1.2 HTML DOM 定义了访问和操作HTML文档的标准方法. 1.3 H ...

  2. IOS 单击手势和cell点击冲突

    环境: view上添加tableView,给view添加单击手势,点击cell却走的是手势方法. 解决: UITapGestureRecognizer *tap=[[UITapGestureRecog ...

  3. Elastic serarch 安装

    1.安装 1.1下载最新的 elasticsearch-6.5.4.tar.gz 1.2解压 tar -zxvf elasticsearch-6.5.4.tar.gz 1.3 创建用户 elastic ...

  4. JWT 理解

    概念: JWT是json web token缩写.它将用户信息加密到token里,服务器不保存任何用户信息.服务器通过使用保存的密钥验证token的正确性,只要正确即通过验证. 优点是在分布式系统中, ...

  5. function类型(c++11)

    1.c++五大可调用的对象 可调用的对象常常作为泛型算法的实参 1)函数 2)函数指针 函数名其实也是函数指针,只不过函数名是一个常量指针,它的值不能改变,只能指向该函数,不能改变它的值让它指向别的函 ...

  6. MFC连接MySQL C API方法

    1.首先下载一个32位的MySQL,因为vc的版本是32位了,不用32 位的MySQL会出现无效的机械码错误. MySQL安装地址:https://dev.mysql.com/downloads/my ...

  7. 怎么通过tomcat的catalina.out查看日志

    进入tomcat的logs目录下:cd apache-tomcat/logs/ 查看logs下的文件和目录:ll   可以找到catalina.out文件: 实时查看日志: tail -fn 100 ...

  8. Vsftpd完全攻略(三)基于系统用户支持ftp上传 访问和vsftp安全设置

    原文链接:http://viong.blog.51cto.com/844766/261342 1.关闭匿名用户登录 ftp支持匿名登录是不安全,所以要禁止匿名ftp登录 在/etc/vsftpd/vs ...

  9. ArcGIS的地理坐标系与大地坐标系

    一直以来,总有很多朋友针对地理坐标系.大地坐标系这两个概念吃不透.近日,在网上看到一篇文章介绍它们,非常喜欢.所以在此转发一下,希望能够对制图的朋友们有所帮助. 地理坐标:为球面坐标. 参考平面地是  ...

  10. Objective-C的泛型

    WWDC2015的明星是Swift.在Swift语言到2.0以后会被开源,这其中包括了protocol扩展和一个新的错误处理API. 苹果的小baby已经长成,并且意料之中的获得了开发者的关注.但是在 ...