Following the article Setting up your account and first git repository in the man section of sr.ht.
- In the project folder, create a git repository with
git init. - Create the initial commit. My initial commit was a simple text file to document all things neccesary to set up the site.
- Add a remote to the local git repository, in my case with
git remote add origin git@git.sr.ht:~monomonnik/monomonnik.srht.site. - Add a
.gitignorefile in the root of the project folder. In that file:
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# macOS-specific files
.DS_Store