WFU-TLC / flc_discussion_board

A repository for discussing questions and issues in the Data Analysis with R (FLC)
https://wfu-tlc.github.io/
0 stars 0 forks source link

GitHub Navigation Issue #1

Closed adanieljohnson closed 5 years ago

adanieljohnson commented 5 years ago

This is definitely a novice GitHub user question, but we all start somewhere. Is there no simple way to create folders inside of GitHub? I can create folders in my local copy of a repo then push them, but seems like it would be handy to be able to do it directly inside the repo.

francojc commented 5 years ago

Technically you cannot create an empty folder/directory in GitHub --either pushing from your local repository or directly on the GitHub repository. To work around this limitation, you need to create a directory with a file named '.gitkeep' inside this directory. The prefixed '.' means the file is hidden from view on your OS and only serves as a placeholder to ensure the directory will be tracked by git/GitHub.

This issue is discussed on StackOverflow here. The relevant instructions for creating the 'empty' directory are these:

I hope this helps.

adanieljohnson commented 5 years ago

That's what I needed! D

francojc commented 5 years ago

Great.