Introduction to version control with Git
2025-07-17
Description
Git is an essential skill if you use any programming language. It allows you to keep track of changes to your project over time, collaborate with others, and maintain a clear and organized project structure. This can save time, improve research efficiency, and also makes it easy to publish your code via platforms such as Github. In this lecture, I will introduce the basic concepts of Git and how to use it for you own projects. The lecture is for Git beginners but also for people who use basic Git for their own projects and want to know a bit more about the concepts behind the workflow.
Get started with Git
You can check out the website of my Git workshop for:
Resources
- Git cheat sheet: Always handy if you don’t remember the basic commands for the terminal.
- Learn git concepts, not commands: Very nice blogpost. Explains really well the concepts of git, also more advanced ones like
rebase
orcherry-pick
. - How to write good commit messages: Explains why good commit messages are important and gives 7 rules for writing them.
- Git book: Explains git concepts from the very beginning.
Git ❤️ command line
- Follow this Git training for learning the Git concepts in the command line.
Git ❤️ R
There is a whole book on using Git with R that explains the setup in detail but also goes into more advanced topics.
Follow this step by step guide to set up Git and a GitHub connection in R and R Studio
Git ❤️ GitHub Desktop
- There are detailed step by step guides on how to set up GitHub Desktop and how to work with in the GitHub Desktop Documentation