(window.webpackJsonp=window.webpackJsonp||[]).push([[1150],{1558:function(t,s,e){"use strict";e.r(s);var o=e(31),a=Object(o.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"show"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[t._v("#")]),t._v(" Show")]),t._v(" "),e("h2",{attrs:{id:"overview"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#overview"}},[t._v("#")]),t._v(" Overview")]),t._v(" "),e("p",[e("code",[t._v("git show")]),t._v(" shows various Git objects.")]),t._v(" "),e("h3",{attrs:{id:"for-commits"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#for-commits"}},[t._v("#")]),t._v(" For commits:")]),t._v(" "),e("p",[t._v("Shows the commit message and a diff of the changes introduced.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Command")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("git show")])]),t._v(" "),e("td",[t._v("shows the previous commit")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("git show @~3")])]),t._v(" "),e("td",[t._v("shows the 3rd-from-last commit")])])])]),t._v(" "),e("h3",{attrs:{id:"for-trees-and-blobs"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#for-trees-and-blobs"}},[t._v("#")]),t._v(" For trees and blobs:")]),t._v(" "),e("p",[t._v("Shows the tree or blob.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Command")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("git show @~3:")])]),t._v(" "),e("td",[t._v("shows the project root directory as it was 3 commits ago (a tree)")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("git show @~3:src/program.js")])]),t._v(" "),e("td",[t._v("shows "),e("code",[t._v("src/program.js")]),t._v(" as it was 3 commits ago (a blob)")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("git show @:a.txt @:b.txt")])]),t._v(" "),e("td",[t._v("shows "),e("code",[t._v("a.txt")]),t._v(" concatenated with "),e("code",[t._v("b.txt")]),t._v(" from current commit")])])])]),t._v(" "),e("h3",{attrs:{id:"for-tags"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#for-tags"}},[t._v("#")]),t._v(" For tags:")]),t._v(" "),e("p",[t._v("Shows the tag message and the referenced object.")]),t._v(" "),e("h4",{attrs:{id:"syntax"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#syntax"}},[t._v("#")]),t._v(" Syntax")]),t._v(" "),e("ul",[e("li",[t._v("git show [options] "),e("object",[t._v("...")])])]),t._v(" "),e("h4",{attrs:{id:"remarks"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#remarks"}},[t._v("#")]),t._v(" Remarks")]),t._v(" "),e("p",[t._v("Shows various Git objects.")]),t._v(" "),e("ul",[e("li",[t._v("For commits, shows the commit message and diff")]),t._v(" "),e("li",[t._v("For tags, shows the tag message and referenced object")])])])}),[],!1,null,null,null);s.default=a.exports}}]);