xxxxxxxxxx
git add folderName/
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/GitHubName/student_data.git
git push -u origin main
xxxxxxxxxx
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
(for example, .gitkeep which is conventionally used
to make Git track otherwise empty folders; it is
not a Git feature though)
Finally, click Commit new file.
xxxxxxxxxx
touch README.md
nano README.md
#### ADD YOUR INFORMATION
#### Press: control + X
#### Type: Y
#### Press: enter
-->1)Click on the "ADD FILE" left to the green Code button
-->2)Then from the DropDown menu Tap on the "UPLOAD FILES"
-->3)Then Simply Drag and Drop the Folder .