Git Notes

Setup

Source Files

Repo
github.com/DaraMac/git-masterclass

Downloading Git

Instructions
git-scm.com/install
Linux
Use package manager
Mac
Package manager (brew.sh) or Xcode
Windows
Git Bash

Setting Up A Forge

GitHub
github.com
GitLab
gitlab.com
Codeberg
codeberg.org
Forgejo
forgejo.org
SourceHut
sourcehut.org
cgit
git.zx2c4.com/cgit/about

Connecting GitHub

Getting a GUI

Official list
git-scm.com/tools/guis
GitHub Desktop
github.com/apps/desktop
Windows
GitHub desktop (download from link)
Mac
GitHub desktop (Brew formula available)
Linux
codeberg.org/ckruse/Gitte

Editor Integration

RStudio
happygitwithr.com/rstudio-git-github.html
VSCode
code.visualstudio.com/docs/sourcecontrol/quickstart

Nicer Command Line

Motivation

Goals

Version Control

What to Version Control

Datasets?

Reproducibility

Other Useful Things in Forges

Git

GitHub

Fun Things

Introduction

Resources

Model

Configuring

Initialising a Repo

git init

Ignoring

Cloning

Status

git status

Remotes

Adding

git add

Committing

Pushing

git push

Seeing History

Branching

Diffing

Pulling

Merging

Tagging

Throwing Away Changes

Undoing Change

The Nuclear Option

Next Steps

Collaborating!

Hooks

Actions