clean-code

Logo

Training materials and slides for courses on version control, clean code and documentation with practical examples and exercises in Python and R

View the Project on GitHub RISE-UNIBAS/clean-code

This section’s goal

Get you in a position to decide if Git might be useful for your work.

What is Git?

Local version control

Centralized version control

Distributed version control

Using Git

After installation on your computer, you can use Git:

Git repository hosting services

But where do I host my Git repository? Do I have to configure a server myself?

GitLab at Unibas

In contrast to GitHub, GitLab can be installed on your own infrastructure (e.g., required for sensitive data).

There are several GitLab instances at Unibas but none run as official university-wide service:

National infrastructure

Switch offers a GitLab instance, c4science supports Git:

Looking at a sample GitHub repository

GitHub repo for these slides: https://github.com/RISE-UNIBAS/clean-code/tree/main/crash-course/git

Image credit: Alex Eylar, “Inception”, CC BY-NA-SA 2.0.

Further reading