Why Use Version Control ?

  • Have you ever been coding on a project that was working, made a change the broke it and weren't able to get back to a working state?

  • Have you wondered why you made a particular change to your code aboaut a year ago

  • Is all your analysis and the code only on your laptop which might blow up / get stolen / be left behind somewhere? If you did back it up how long ago was that, could you recreate all the work since then from memory?

  • In years gone by open source software was distributed as compressed tar archives. Nowadays it is common to point people to a git repository.

  • A repository enables us to collaborate with others.

  • Many tools now integrate with version controol tools, e.g. IDEs, Code Review tools, Continuous Integration / Continuous Deployment

  • You can use a service like Zenodo to register DOIs (citable references) for particular versions of your software

Final.doc (c)Jorge Cham http://phdcomics.com/

Using the Terminal in JupyterHub

start-terminal-jupyterhub.png

Exercises

Exercise 1

Answers 1

  • Check git is installed

You can attempt to run it with

git

Or

git --version
  • Clone a git repository from the URL
git clone https://github.com/githubtraining/example-basic.git