I recently wrote a blog post using the taavi/laravel-socialite-mediawiki PHP library which is hosted on sr.ht.
sr.ht, or sourcehut is “is a collection of tools useful for software development”, including git repository hosting.
I had to make a change to the library, and this was my first time contributing to a sr.ht repository. The workflow was quite different from what I am used to and required quite some Googling before I came up with something that I was happy with. So here goes my workflow.
Workflow
Firstly, if you haven’t used sr.ht before you’ll need to create an account and set up some way of pushing code (SSH keys etc). There are some fairly good docs for this already for Setting up your account and first git repository, but you can stop at Creating a git repository.
Once you have an account set up you need to find the sr.ht repository that you want to work with. In my case that is at the URL https://git.sr.ht/~taavi/laravel-socialite-mediawiki
You can find a clone URL over on the right-hand side of the repo page, and you want to go ahead and clone the repo.
git clone https://git.sr.ht/~taavi/laravel-socialite-mediawikiCode language: PHP (php)
You then also want to fork the repo into your own sr.ht account. The button is also on the right.
(You can also use your local clone to send a git email, but I didn’t want to install this tooling)

