混帐和空文件夹 [英] git and empty folders

查看:121
本文介绍了混帐和空文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我看到Git无法识别文件夹,或者我应该说当提交之间唯一的变化是将空文件夹添加到工作树时,它们不会显示在 git status git add。。



如何处理将空文件夹添加到工作树的需求(用于运行时存储),并在其他存储库从当前存储库(其中添加了文件夹的存储库)中取出时反映/创建它们? 解决方案人们经常在文件夹中放置一个空文件作为占位符来克服这个限制...


So I see Git doesn't recognize folders, or should I say when the only change between commits is addition of empty folders to the working tree they're not show in git status after git add ..

How would you handle the need to add empty folders to the working tree (for runtime storage) and have them be reflected/created when other repositories pull from the current repository (one in which the folders were added)?

解决方案

People often put an empty file as a placeholder in the folder to overcome that limitation...

这篇关于混帐和空文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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