How was your procedure?
You first created the repository on Github and made the clone?
Or created a directory on your machine and now wants to send to Github?
On Github, you checked the option to initialize the directory? or not?
The easiest way is:
- Create the repository on Github, check the option to create README.
- Make a git clone URL to your computer.
- Copy the files you want to upload to Git. (I think it’s important
before committing to create a .gitignore. With this file you
configures what you don’t want to send to the git server. As for
examples temporary files on systems. With Maven in Java, i
do not need to store the target folder for example. Projects made with
Netbeans or other Ides I can choose not to save files from
Project configuration that are created for the user’s machine.
Here on this link has a lot of example, for projects in
several languages.
- git commit -am "COMMIT MESSAGE"
- git push (ready files will be transferred to Git or
Github)
What are you trying to send? , git status to see the modifications, git add - All to add to the container and git commit -m "msg from commit"; to commit, then push
– Felipe Duarte
@Felipeduarte I’m trying to upload my "index.html" file and the updated "README"
– user77896