@@ -19,11 +19,11 @@ See the
1919Each commit is assigned a &ldquo ; hash tag&rdquo ; which is a unique
2020sequence of letters and numbers, like
2121[ 4d9fe11e56652bd19e19e28eac3906f09d5a3074] ( https://github.com/kbroman/github_tutorial/commit/4d9fe11e56652bd19e19e28eac3906f09d5a3074 ) .
22- When you refer to these hash tags, you can just use an initial substr ,
22+ When you refer to these hash tags, you can just use an initial substring ,
2323like ` 4d9fe ` , that is unique to your repository.
2424
2525For my [ R/qtl package] ( http://github.com/kbroman/qtl ) , I like to tag
26- particular commits by the version number of the package, then I can
26+ particular commits by the version number of the package. Then I can
2727use my assigned tag in place of the less memorable hash tag.
2828
2929To assign a tag, use something like
@@ -76,9 +76,19 @@ And again you can use this for a particular file:
7676
7777 git diff 1.22-21 1.23-16 inst/STATUS.txt
7878
79+ ` git diff ` has a ton of options; see the manual page:
80+
81+ git diff --help
82+
83+ For example, you can get a brief summary of which files were changed with ` --stat ` :
84+
85+ git diff 1.22-21 1.23-16 --stat
86+
7987If you use [ gitx] ( http://gitx.frim.nl/ ) , you can use it to view the
8088differences; use a pipe:
8189
8290 git diff 1.22-21 1.23-16 | gitx
8391
92+
93+
8494** Next** : [ Branching and merging] ( branching.html )
0 commit comments