I’ve been doing a couple of online classes recently, and it’s nice to be able to stash things remotely for a variety of reasons. I’ve been using and liking the service at sr.ht lately for hosting my personal stuff. The interface there suits my taste more than either GitHub or GitLab does, and I really admire the way they are building their business. I frequently stumble across little things I like there, many related to how little you have to actually touch the web interface to use the service.

They’ve really outdone themselves with this one, though. When I want to create a new repository most places, I have to fire up a browser, visit a site, find my way to a new project wizard, click through a few screens of forms, etc. It usually takes me about 5 minutes and isn’t a big deal. But it’s just enough of a hassle to cause me not to store some things there that I might kind of like to save.

Source Hut has introduced the ability to create a new repository by just pushing to it.

So if I’ve got a local repo I’d like to move to sr.ht, as long as I (or zsh) can remember their repository URL format, All I have to do is

git remote add origin git@git.sr.ht:~username/my-new-project
git push --set-upstream origin master

The response from their server then says

remote: 	NOTICE
remote: 	We saved your changes, but this repository does not exist.
remote: 	Click here to create it:
remote: 	https://git.sr.ht/create?name=my-new-project
remote: 	Your changes will be discarded in 20 minutes.

Clicking that link from the terminal takes me to a page where I type a description, choose from “Public”, “Unlisted” or “Private”, and click one button to finish the setup.

It’s a small thing, but it makes the impedence to using sr.ht so low now that I find myself saving things there if I even kind of think I want to.

I’m trying on Kev Quirk’s “100 Days To Offload” idea. You can see details and join yourself by visiting 100daystooffload.com.