Version Control with Git

David Rach

2026-01-21

AGPL-3.0 CC BY-SA 4.0

Background

Getting Started


New Folder from Template






Creating SubFolders


Creating Files




QMD Files

YAML


Text


Code-Chunks




Running Code





Local Version Control


Untracked




Staged


Commit



UserName and UserEmail






First Commit




Modified




Commit via Terminal






Remote Version Control

Copying Project Folder to GitHub












Code Chunk Arguments


README


.gitignore






Pull


Push




Reverting to Prior Commit






Branches













Wrap-Up

Additional Resources

Git & GitHub Tutorial for Scientist: It’s Not Only for Programmers

Ten Simple Rules for Taking Advantage of Git and GitHub

A brief introduction to Git for beginers

AGPL-3.0 CC BY-SA 4.0