Git: How to add empty directory?
## Objective:
- Add empty directory to Git repo using ``git add``
## Fore exmple
"include" directory is a empty directory, and it is not added to Git by default.
This may cause compile error when I clone and compile it in another PC.
```sh
➜ action_example git:(master) ✗ tree
.
├── action
│ └── DoDishes.action
├── CMakeLists.txt
├── include
├── package.xml
└── src
├── client.cpp
├── client.py
├── server.cpp
└── server.py
```
## Solution
```sh
cd include
touch .gitkeep
git add .
```
No comments