Skip to content

Commit ea2da8a

Browse files
committed
Minor changes to exploring_code.md and rstudio.md
1 parent af30e2b commit ea2da8a

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

pages/exploring_code.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ See the
1919
Each commit is assigned a “hash tag” which is a unique
2020
sequence 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,
2323
like `4d9fe`, that is unique to your repository.
2424

2525
For 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
2727
use my assigned tag in place of the less memorable hash tag.
2828

2929
To 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+
7987
If you use [gitx](http://gitx.frim.nl/), you can use it to view the
8088
differences; use a pipe:
8189

8290
git diff 1.22-21 1.23-16 | gitx
8391

92+
93+
8494
**Next**: [Branching and merging](branching.html)

pages/rstudio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: git/github with RStudio
77
environment for [R](http://www.r-project.org).
88

99
RStudio has built-in facilities for [knitr](http://yihui.name/knitr/)
10-
(the superb successor to [Sweave](http://www.stat.uni-muenchen.de/~leisch/Sweave/)) and [Rmarkdown](http://www.rstudio.com/ide/docs/r_markdown) (a
10+
(the superb successor to [Sweave](http://www.stat.uni-muenchen.de/~leisch/Sweave/)) and [R Markdown](http://www.rstudio.com/ide/docs/r_markdown) (a
1111
variant of
1212
[Markdown](http://daringfireball.net/projects/markdown/syntax)), which
1313
are highly recommended for writing data analysis reports.
@@ -21,7 +21,7 @@ Basically, in RStudio you want to create a Project
2121
([described further here](http://www.rstudio.com/ide/docs/using/projects)),
2222
which is basically a directory with some special files to describe
2323
project-specific RStudio options. This Project will be your git
24-
repository. Or you can easily make a current git repository into an
24+
repository. Or you can easily turn a current git repository into an
2525
RStudio Project. And then you can use items in the menu bar to commit
2626
changes and push or pull from GitHub.
2727

0 commit comments

Comments
 (0)