03 - Version control

Learn about version control for research using git

Stefano Coretta

University of Edinburgh

Why should you learn version control?

How does version control work?

Version 1

Version 1 snapshot

Version 2

Version 2 snapshot

Version 3

Version 3 snapshot

The versioning system git

git https://git-scm.com

  • git is a very popular choice for software development.

  • Tailored for tracking changes in software files.

  • But, also useful with anything that is text-based (like analysis scripts, papers, dissertations, …).

What can git do for you?

  • Keep track of new or deleted files in a project.

  • Keep track of changes to individual files in a project.

    • Done on a line-by-line basis.
  • Roll back to a previous version of the project or files.

  • Make back-ups of your files.

Practice