Improved instructions on managing notebooks with git.

The instructions used to just point to a Stack Overflow question. I have
now added them explicitly to the CONTRIBUTING guide.