飞牛git 【报错】warning: templates not found in /usr/local/git/share/git-core/templates

1. 问题描述

使用git clone 拉取项目,提示warning: templates not found in /usr/local/git/share/git-core/templates,导致项目无法正常拉取。

2. 解决方案

如果 Git 是飞牛NAS自带的(而非系统 apt 安装的),可尝试:

# 1. 卸载飞牛NAS的 Git(谨慎操作,确保不影响NAS依赖) 
sudo apt remove git 

# 2. 重新安装 Debian 官方 Git 
sudo apt install --reinstall git ca-certificates curl

 

然后再次使用git 就可以拉取项目了

请登录后发表评论

    没有回复内容