a figure wearing a shirt and scarf with a floating crystalline head

proto's notes ⋄

originally written 2026-11-02

Git

Git is the version control software. I use it to control all of my versioning and participating in other people projects via git forges like codeberg or my instance’s forgejo instance is something I’m always trying to do more.

quickref

git add . # stages all files to be committed
git add file1 file2 file3 # stages selected files

git commit -m 'commit message' # commits to whatever your default branch is (usually main)

git remote add origin <URL> # adds an origin and configures it as fetch and push
git remote set-url --add --push origin <URL2> # push one repo to multiple remote places

git remote -v # lists all remote urls

git remote remove origin # removes all push and fetch types 

git pull # retrieves from fetch url in remote

git push # pushes to remote urls