git 和空文件夹 [英] git and empty folders
本文介绍了git 和空文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我看到 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...
这篇关于git 和空文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文