Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_show [2019/02/24 08:13] – [Showing a file in the current directory] rpjday | git_show [2019/02/24 08:17] (current) – [Showing the staged version of a file] rpjday | ||
|---|---|---|---|
| Line 93: | Line 93: | ||
| </ | </ | ||
| - | ===== Showing files and directories | + | ===== Showing files ===== |
| ==== The general form ==== | ==== The general form ==== | ||
| < | < | ||
| - | $ git show < | + | $ git show < |
| </ | </ | ||
| ==== Showing some historical version of a file ==== | ==== Showing some historical version of a file ==== | ||
| Line 117: | Line 117: | ||
| < | < | ||
| + | $ cd scripts/ | ||
| $ git show HEAD: | $ git show HEAD: | ||
| - | $ git show v4.12:./Makefile | + | $ git show v4.19:./Makefile |
| </ | </ | ||
| ==== 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 state of the file in the index: | ||
| < | < | ||