相关疑难解决方法(0)

Git:设置一个只提取的遥控器?

当我git remote -v在我的一个配置了远程的Git存储库中运行时,我看到每个远程都有fetch和push规范:

$ git remote -v
<remote-name> ssh://host/path/to/repo (fetch)
<remote-name> ssh://host/path/to/repo (push)
Run Code Online (Sandbox Code Playgroud)

对于指向同行开发人员的遥控器,没有必要推送,Git无论如何都会拒绝推送到非裸机库.有没有办法将这些遥控器配置为"仅提取"而没有推送地址或功能?

git workflow

116
推荐指数
3
解决办法
2万
查看次数

标签 统计

git ×1

workflow ×1