Setup git and SourceHut

Following the article Setting up your account and first git repository in the man section of sr.ht.

  1. In the project folder, create a git repository with git init.
  2. Create the initial commit. My initial commit was a simple text file to document all things neccesary to set up the site.
  3. Add a remote to the local git repository, in my case with git remote add origin git@git.sr.ht:~monomonnik/monomonnik.srht.site.
  4. Add a .gitignore file in the root of the project folder. In that file:
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# macOS-specific files
.DS_Store