Week 2

Version Control, Collaboration & Reproducible Workflows

Introduction

This week we move from writing code individually to managing and collaborating on code. We introduce Git, GitHub, branching, and basic principles for making data and code more reproducible.

Learning goals

  1. Understand the fundamentals of Git and GitHub

  2. Create and manage a GitHub repository

  3. Understand commits, issues, branches, and merge conflicts

  4. Apply naming conventions and FAIR data principles

Lecture - Version Control Systems & Integration

Introduction to Git and GitHub, repository structure, commits, and collaborative workflows.

Lab - Broken Online, Merge Conflicts & Branching

Hands-on practice with GitHub workflows, resolving merge conflicts, creating branches, and merging changes.

Discussion - Naming Conventions & FAIR Principles

Why do consistent naming and data management practices matter?

Introduction to file and variable naming conventions and the FAIR principles: Findable, Accessible, Interoperable, and Reusable.

Assignment

  1. Create a repository

  2. Make an initial commit

  3. Create an issue

  4. Fix the issue and commit the change

  5. Create and merge a branch

Looking ahead

Next week we will move from managing code to working with cloud computing, APIs, and agricultural data infrastructure.

::: {style=“font-size: 0.875em;”} Back to course schedule ⏎ :::