<- back to solarcat

~* git guide *~

like github, but with better uptime!

/\_/\ ( -.- ) git commit -m "meow" > ^ <

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

step 1 :: get an account

step 2 :: install git

step 3 :: set up a login (pick one)

way A :: ssh key (recommended, one-time setup):

  1. in the terminal, run ssh-keygen -t ed25519 -C "you@whatever" and just press enter all the way through.
  2. it makes two files in ~/.ssh (on windows: C:\Users\you\.ssh). the one ending in .pub is your public key — safe to share, that's the point.
  3. open the .pub file and copy its whole contents. (in git bash: cat ~/.ssh/id_ed25519.pub)
  4. in gitea: top right → settingsssh / gpg keysadd key → paste → save.

way B :: token (no terminal needed):

  1. in gitea: settingsapplications → generate a new token (name it something like "my laptop", give it all the permissions).
  2. copy the token somewhere safe — it's shown only once.
  3. whenever git asks for a password while pushing, the answer is your username + this token.

step 4 :: make a repo and put things in it

  1. in gitea, click the +new repository. name it, leave the defaults, create. (tick "private" if you want it just for yourself!)
  2. on the repo's page, gitea shows the exact commands to use — including the right clone address. tip: ssh uses a funny port (2222), but the address gitea shows already has it, so just copy-paste from there and don't think about it.

or, doing it fully by hand from a fresh folder:

mkdir myproject && cd myproject git init echo "hello :3" > README.md git add . git commit -m "first commit" git remote add origin ssh://git@git.solarcat.eu:2222/you/myproject.git git push -u origin main

(replace you/myproject with your username and repo name. if git complains it doesn't know which branch to push, run git branch -M main and try the push again.)

step 5 :: the daily loop

after the first push, 90% of git is just this, over and over:

# edit some files... git add . git commit -m "what you changed" git push

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

repos, collaboration, merge conflicts, existential dread? message us — we'll sort you out <3