Skip to content

Commit b7c9cfb

Browse files
committed
A few more examples in exploring_code
1 parent f335b42 commit b7c9cfb

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

pages/exploring_code.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ To see all of the changes since a given commit, type
5353
git diff [commit]
5454

5555
Where in place of `[commit]` you use the initial part of a hash tag,
56-
like `9f4668c`, or a tag you've created, like `1.28-1`.
56+
like `5fb8045`, or a tag you've created, like `1.22-21`.
57+
58+
For example:
59+
60+
git diff 5fb8045
61+
git diff 1.22-21
5762

5863
To see all of the changes to a given file since a given commit, type
5964

@@ -67,7 +72,11 @@ To see all of the changes between two revisions, type something like
6772

6873
git diff 1.22-21 1.23-16
6974

75+
And again you can use this for a particular file:
76+
77+
git diff 1.22-21 1.23-16 inst/STATUS.txt
78+
7079
If you use [gitx](http://gitx.frim.nl/), you can use it to view the
71-
differences using a pipe:
80+
differences; use a pipe:
7281

7382
git diff 1.22-21 1.23-16 | gitx

0 commit comments

Comments
 (0)