Just add a file .gitkeep
in every folder you want committed.
On windows do so by right clicking when in the folder and select: Git bash from here. Then type: touch .gitkeep
More Related Contents:
- Ignore files that have already been committed to a Git repository [duplicate]
- .gitignore exclude folder but include specific subfolder
- How do I configure git to ignore some files locally?
- Can I ‘git commit’ a file and ignore its content changes?
- What should be in my .gitignore for an Android Studio project?
- ignoring any ‘bin’ directory on a git project
- How to tell git to ignore individual lines, i.e. gitignore for specific lines of code [duplicate]
- Using git, how do I ignore a file in one branch but have it committed in another branch?
- How do I add files without dots in them (all extension-less files) to the gitignore file?
- How do I tell Git to ignore everything except a subdirectory?
- Explain which gitignore rule is ignoring my file
- .gitignore after commit [duplicate]
- git ignore vs. exclude vs. assume-unchanged
- Whitelisting and subdirectories in Git
- When would you use .git/info/exclude instead of .gitignore to exclude files?
- How to remove files that are listed in the .gitignore but still on the repository?
- What is .gitignore?
- How to exclude file only from root folder in Git
- How to git ignore subfolders / subdirectories?
- Force add despite the .gitignore file
- What’s the difference between Git ignoring directory and directory/*?
- How to manage configuration files when collaborating?
- git still shows files as modified after adding to .gitignore
- Can I make a user-specific gitignore file?
- How do negated patterns work in .gitignore?
- git ignore exception
- What to gitignore from the .idea folder?
- Unignore subdirectories of ignored directories in Git
- Git Ignores and Maven targets
- Ignoring a directory from a Git repo after it’s been added