Earth Data Challenge 2027
← Course resources

Using Git & GitHub

Save a history of your analysis and share changes with your team.

The basic concepts

Work together with individual accounts

Use your own GitHub account and collaborate through a team repository. Keep passwords and access tokens private. Course-specific repository and authentication instructions will be provided with the computing environment.

For an introduction, use GitHub’s Hello World tutorial and About Git.

A working session

  1. Pull the latest changes before beginning.
  2. Coordinate with teammates about which files each person will edit.
  3. Work in small steps and save your notebook.
  4. Review the changed files and stage the intended changes.
  5. Commit with a message describing the work.
  6. Push the commit so teammates can access it.

Keep the repository reproducible

Include code, notebooks, a README, environment requirements, and data provenance. The README should explain the question, data sources, and how to run the analysis. Keep bulk datasets outside Git and document how to access them. Exclude credentials, tokens, and private configuration files.

Notebook collaboration

Coordinate edits to a notebook to avoid competing changes. Before sharing a completed analysis, restart the kernel and run the notebook from beginning to end. Check that the results do not depend on cells executed out of order.

If Git reports a conflict, preserve your work and ask for help before overwriting files.

Questions: Alex Bradley.