Git & Forgejo

Pen and paper in pairs

x = 11
y = x

print(x, y)

x = 11
y = 11
x = 22

print(x, y)

x = [2, 3, 4]
y = x

print(x, y)

x = [2, 3, 4]
y = x
x = [7, 8, 9]

print(x, y)

x = [2, 3, 4]
y = [2, 3, 4]
x[1] = 8

print(x, y)

x = [2, 3, 4]
y = x
x[1] = 8

print(x, y)

Emacs

ControllerForWindowsAndAndroid1.jpg

Dw5pVIeWsAEP4Sk.jpg

Editing our .bashrc file

Now we can use emacs to edit our .bashrc file. Just give the command emacs and I will talk you through it in class.

git

Introduce yourself to git

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

Tell git to name the default branch main

git config --global init.defaultBranch main

git

An example of using git

  • /home/advprog/days-of-the-year

Sharing a git repo on the advprog Linux server

git init --bare --shared=group /tmp/our-git-repo

etc

Author: Breanndán Ó Nualláin <o@uva.nl>

Date: 2025-02-20 Thu 11:47