Adding remote to an existing git9 repository

The git9 Plan 9 git client does not currently have a git/remote command. In order to add a remote origin to a locally created repository, the following section must be added to the .git/config file:

[remote "origin"]
	url = git+ssh://git@git.sr.ht:~user/repository
	fetch = +refs/heads/*:refs/remotes/origin/*

Note the git+ssh:// protocol, which is seemingly needed by git/push, even though the original git client typically omits it in its own repository clones.


git9 @ orib.dev