第一次使用 git 同步方式的用户需要进行如下操作:
修改 /etc/portage/repos.conf/gentoo.conf
sync-type 改为 gitsync-uri 改为 {{endpoint}}删除 /var/db/repos/gentoo
emerge --sync已经配置 git 同步的用户只需:
修改 /etc/portage/repos.conf/gentoo.conf
sync-uri 改为 {{endpoint}}于 /var/db/repos/gentoo 下,执行
git remote set-url origin {{endpoint}}
emerge --sync