How to create folder in github repository?

You cannot create an empty folder and then add files to that folder, but rather creation of a folder must happen together with adding of at least a single file. On github you can do it this way:
  • go to the folder inside which you want to create another folder
  • click on New file
  • on the text field for the file name, first write the folder name you want to create
  • then type /. This creates a folder
  • you can add more folders similarly
  • finally, give the new file a name, (eg. .gitkeep which is conventionally used to make git track otherwise empty folders, not a git feature though)
  • finally click Commit new file.

source: link

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel