shithub: git9

Download patch

ref: c650a73135616b6b693143afcd21e880bf269283
parent: df893c6891d41a7405970ad60bec8c9480b9389b
author: kvik <kvik@a-b.xyz>
date: Wed Nov 4 13:25:17 EST 2020

git/init: allow configuring defaults for the origin remote

Users may add the following section to $home/lib/git/config
which sets up defaults for the  origin  remote.

	[defaults  origin ]
		baseurl = ssh://git@git.sr.ht/~kvik

Only baseurl entry is supported currently. The name of a newly
initialized repository gets appended to the baseurl, producing
a remote  origin .url entry

	[remote  origin ]
		url = ssh://git@git.sr.ht/~kvik/newrepo