Day 1: Concepts and individual Git workflow
November 9, 2026
selina.baldauf@fu-berlin.de selinabaldauf.com
🎯 Learn simple Git workflows in theory and practice that you can immediately apply to your research projects.
Material is all online
Did anyone have problems with the workshop preparation?
Git checks all the boxes!
For projects with mainly text files (e.g. code, markdown files, …)
Basic idea: Take snapshots (commits) of your project over time
Git is a distributed version control system
After you installed it there are different ways to interact with the software.
Using Git from the terminal
➕ Most control
➕ A lot of help/answers online
➖ You need to use terminal 😱
A Git GUI is integrated in most (all?) IDEs, e.g. R Studio, VS Code
➕ Easy and intuitive
➕ Stay inside IDE
➖ Different for every program
Standalone Git GUI software, e.g. GitHub Desktop, Source Tree, …
➕ Easy and intuitive
➕ Use for all projects
➖ Switch programs to use Git
Tip
Have a look at the website where you find How-To guides for the other methods as well.
git init,git add,git commit,git push
A cook book project to collect all my favorite recipes.
In real life this would be e.g. a data analysis project, your thesis in LaTeX, a software project, …
Git detects any changes in the working directory
Staging a file means to list it for the next commit.
Staging a file means to list it for the next commit.
Commits are the snapshots of your project state
Commits are the snapshots of your project state
Changes are part of Git history and staging area is clear again
See here for more details and guidelines.
Stay in the meeting for the task.
Ask if you are stuck.
Turn down volume if you are disturbed.
Start your own cook book
Complete Task 1 “Local repo”
Use remote repos to synchronize, share and collaborate (can be public or private/for collaborators only)
Use remote repos to synchronize, share and collaborate (can be public or private/for collaborators only)
README.md is the landing page of your project on GitHubSee GitHub’s Markdown guide for more formatting options.
Publish your cook book on GitHub
Complete Task 2 “GitHub”
git init: Initialize a git repository
.git folder to your working directorygit add: Add files to the staging area
git commit: Take a snapshot of your current project version
git push: Push new commits to the remote repository
git restore,git revert
git restore <file>git revert to revert specific commitsDiscard uncommitted changes and revert a commit
Complete Task 3 “Undo changes”
.gitignore.gitignore.gitignore.gitignore in working directory.gitignore fileIgnore a file and commit the
.gitignore
Complete Task 4 “Ignore files”
git init, git add, git commitgit pushgit restore, git revert.gitignoreThis is all you need for version control and publishing of your personal projects.
Tomorrow: Collaborate with others on GitHub
Invite your team mate to your repo and accept their invitation
Complete the Homework tasks
Questions?
git checkout
Take your work space back in time temporarily with git checkout
Selina Baldauf // Basic Git workflow