Skip to content

Commit

Permalink
Merge pull request swcarpentry#392 from junghans/improvments
Browse files Browse the repository at this point in the history
Add gitignore notes and word-based diffing
  • Loading branch information
iglpdc authored Mar 9, 2017
2 parents 39602ad + 79c72ab commit 95c3c11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _episodes/04-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,14 @@ Date: Thu Aug 22 09:51:46 2013 -0400
~~~
{: .output}

> ## Word-based diffing
>
> Sometimes, e.g. in the case of the text documments a line-wise
> diff is too coarse. That is where the `--color-words` option of
> `git diff` comes in very useful as it highlights the changed
> words using colors.
{: .callout}

> ## Paging the Log
>
> When the output of `git log` is too long to fit in your screen,
Expand Down
3 changes: 3 additions & 0 deletions _episodes/06-ignore.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ nothing to commit, working directory clean
> > and create an exception for the `results/data/` folder.
> > The next challenge will cover this type of solution.
> >
> > Sometimes the `**` pattern comes in handy, too, which matches
> > multiple directory levels. E.g. `**/results/plots/*` would make git ignore
> > the `results/plots` directory in any root directory.
> {: .solution}
{: .challenge}
Expand Down

0 comments on commit 95c3c11

Please sign in to comment.