User Tools

Site Tools


git_show

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_show [2019/02/24 08:15]
rpjday [Showing files and directories]
git_show [2019/02/24 08:17] (current)
rpjday [Showing the staged version of a file]
Line 98: Line 98:
  
 <​code>​ <​code>​
-$ git show <​commit>:<​pathspec>+$ git show <​commit>:<​filename>
 </​code>​ </​code>​
 ==== Showing some historical version of a file ==== ==== Showing some historical version of a file ====
Line 124: Line 124:
 ==== Showing the staged version of a file ==== ==== Showing the staged version of a file ====
  
-If you leave off the commit part, you're referring to the index:+If you leave off the commit part, you're referring to the state of the file in the index:
  
 <​code>​ <​code>​
git_show.1550996109.txt.gz ยท Last modified: 2019/02/24 08:15 by rpjday