使用cnpmjs镜像之后,forge提示Cannot determine forge repository.

,

Cannot determine forge repository. https://github.com.cnpmjs.org/iT-Boyer/hugo.git isn’t a forge url 处理办法: 修改forge-alist参数值: M-x:spc h v 搜索forge-alist 把github.com 替换为 github.com.cnpmjs.org 再次执行forge命令: spc g ‘ l i 会提示添加到数据库中 执行:M-x:forge-add-repository 让后就可正常使用forge了。

1 个赞
(after! forge
  (add-to-list 'forge-alist
               '("hub.fastgit.org" "api.github.com" "hub.fastgit.org" forge-github-repository)
               )
           )