从github排除文件夹 [英] Exclude folder from github
问题描述
我需要从我的Github中排除文件夹App_Data,但我不知道如何.
I need to exclude the folder App_Data from my Github but i don't know how.
我有一个应用程序,可以将许多文件(例如jpg文件)保存在以下目录中:Source \ MyProject \ App_data \ stored \ filename.jpg
I have a application which saves many files like jpg files in the directory: Source\MyProject\App_data\stored\filename.jpg
现在我需要将其从.gitignore文件中排除
Now i need to exclude this from the .gitignore file
我不知道该怎么做,所以我在找一个例子
I don't know how to do this so i am looking for a example
推荐答案
- 在存储库中创建一个名为.gitignore的文件.
- 将文本"App_Data"添加到此文件.
- 保存.
它应该完全按照您想要的去做.它将从本地存储库路径(存储.gitignore的路径)中排除具有该字符串的文件/文件夹.
It should do exactly what you want. It will exclude files/folders with that string from your local repository path (the path where .gitignore is stored).
请记住,这不是您唯一的选择.我将阅读下面链接的帮助文档,以更好地理解您所需要完成的工作.
Keep in mind, this is not your only option. I'd read the help document linked below for a better understanding to get exactly what you need accomplished.
有关更多信息,请参见此处: GitHub帮助-忽略文件
See here for more info: GitHub Help - Ignoring Files
这篇关于从github排除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!