Git/Windows-如何停止跟随符号链接的git? [英] Git / Windows - How do I stop git from following symbolic links?

查看:68
本文介绍了Git/Windows-如何停止跟随符号链接的git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图找到一种在添加/提交文件回购文件的同时,禁止Windows 7上的符号链接禁止git的方法.我尝试将config.symlinks设置为false(git config --bool core.symlinks false).是否有一种简单的方法可以禁用此行为?

I'm trying to find a way to disable git from following symbolic links on Windows 7 while adding/committing files the repo. I've tried setting config.symlinks to false (git config --bool core.symlinks false). Is there a simple solution to disable this behavior?

推荐答案

AFAIK,您无法在Windows上轻松做到这一点.但是,您只需修改.git/info/exclude文件即可排除此文件夹.这是一种解决方法,但是由于您只使用一个文件夹,因此可以很好地工作(我一直在使用build文件夹,但我不想污染我的git状态)

AFAIK, you can't easily do that on windows. However, you can simply modify your .git/info/exclude file to exclude this folder. It's more a workaround, but as you're using only one folder, it will work well (I've been using that for build folder, which I don't want to pollute my git status)

这篇关于Git/Windows-如何停止跟随符号链接的git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆