Create a file in the myFolder/ directory named .gitkeep. This file should be empty. Git will now see the myFolder/ directory as not empty and add it to the repository.
In your .gitignore file, you can ignore all files in the images/ directory, but make an exception for the .gitkeep file. Here is how to do it: