mkdir ~/.git-templates
git config --global init.templatedir ~/.git-templates
git config -l
mkdir -p ~/.git-templates
tar -xvzf git-templates.tgz -C ~/.git-templates
get the url
cd ~/some-git-repo
git ls-remote --get-url 'origin'
EDIT ~/.gitconfig
and add an entry
[user "url-from--get-url"]
email = sample@eml
name = name surname
check it is working
git clone <url-from--get-url>
references: git-templates.tgz