For example, add an empty file called.gitkeepto the folder you want to keep, then in your.gitignorefile write: # exclude everything somefolder/* # exception to the rule !somefolder/.gitkeep Commit your .gitignore and .gitkeep files and this should resolve your issue. ...
如果要显示它,则需要在其中放入一些内容,甚至只是一个空文件。 例如,将一个名为.gitkeep的空文件添加到要保留的文件夹中,然后在.gitignore文件中写入: #exclude everythingsomefolder/*#exception to the rule!somefolder/.gitkeep 提交您的.gitignore和.gitkeep文件,这应该可以解决您的问题。
The root folder contains templates in common use, to help people get started with popular programming languages and technologies. These define a meaningful set of rules to help get started, and ensure you are not committing unimportant files into your repository. ...
$ git status [...] # Untracked files: [...] # Documentation/foo.html # Documentation/gitignore.html # file.o # lib.a # src/internal.o [...] $ cat .git/info/exclude # ignore objects and archives, anywhere in the tree. *.[oa] $ cat Documentation/.gitignore # ignore generated ...
# Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* # NUNIT *.VisualState.xml TestResult.xml # Build Results of an ATL Project ...
Not just on root. /lib/name.file/test/lib/name.file **/name All name folders, and files and folders in any name folder /name/log.file/lib/name/log.file/name/lib/log.file /lib/**/name All name folders, and files and folders in any name folder within the lib folder. /lib/name/...
# User-specificfiles(MonoDevelop/Xamarin Studio)*.userprefs # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ [Xx]64/ [Xx]86/ [Bb]uild/ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ # Visual Studio 2015 cache/options directory ...
In one of the projects that I contribute to, I noticed that there's a .idea/.gitignore file; The .idea folder is not tracked, so I don't think it was added by someone else. The only conclusion that I can come to is that it was auto-generated by the IDE, but I couldn't ...
# Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* # NUNIT *.VisualState.xml TestResult.xml # Build Results of an ATL Project [Dd]ebugPS/ [Rr]eleasePS/ dlldata.c # DNX project...
The*symbol matches zero or more characters, excluding only the/character. For example, the rule*.bakignores all files with the.bakextension, including1.bakandone.bak. Wildcards can be used in both file and folder names. Add a new line to.gitignore: ...