If you're using Git command line or any command line to update your repo on mac or linux machine, you can run the following commands to create the directory:
- Navigate to the git repo location you want to add a new folder to in command line.
- Run mkdir folder_name
- Run ls to list folder changes which should show the new folder.
- Add a new file to the directory. (You must add a file to the directory else git won't show anything to commit)
- Next run git add folder_name that contains the new file(s).
- git commit -m "With you message"
- git push
- Visit your repository on GitHub and notice that your changes are reflected there as well online.