For drones whose upstream repositories are located on Github or Gitlab
emacs.g collective uses the
ssh protocol by default, which is a
problem if you don’t have accounts there and have not properly setup
Luckily this can easily be fixed using the following global rules.
git config --global url.https://github.com/.insteadOf firstname.lastname@example.org: git config --global url.https://gitlab.com/.insteadOf email@example.com:
If you don’t want to configure this globally, then you can also configure
Borg itself to prefer the
(setq borg-rewrite-urls-alist '(("firstname.lastname@example.org:" . "https://github.com/") ("email@example.com:" . "https://gitlab.com/")))
This does not affect packages that have already been assimilated. During bootstrapping you have to change the URLs for packages that are assimilated by default.
cd ~/.emacs.d sed -i "firstname.lastname@example.org:|https://github.com/|g" .gitmodules sed -i "email@example.com:|https://gitlab.com/|g" .gitmodules git commit -m "Use https URLs for Github and Gitlab"
If you have already run
make bootstrap, then you also have to edit
cd ~/.emacs.d sed -i "firstname.lastname@example.org:|https://github.com/|g" .git/config sed -i "email@example.com:|https://gitlab.com/|g" .git/config