I can not send files to the project in github

1

I'm trying to put a html page in the air, but nothing happens and the error appears in the git terminal:

  

Everything up-to-date

Follow the commands I used:

 cd Desktop/ 

 cd projeto-html/

 git init .

 git remote add origin https://github.com/GuigaPassos/GuigaPassos.github.io.git

 git pull origin master

 git add .

 git push origin master

After this appears:

  

Everything up-to-date

    
asked by anonymous 30.06.2017 / 04:30

2 answers

1

Before performing push you need to make a commit , do:

git commit -am 'Mensagem do commit'

The Everything up-to-date message indicates that your repository is up to date

    
30.06.2017 / 05:07
0

How was your procedure?

Did you first create the repository in GitHub and did the clone?

Or have you created a directory on your machine and now want to send it to GitHub?

On GitHub, did you set the option to start the directory? or not?

The easiest way is:

  
  • Create the repository in GitHub, check the option to create the README.
  •   
  • Make a git clone URL for your computer.
  •   
  • Copy the files you want to send to Git. I think it's important   before committing to create a .gitignore. With this file you   configures what you do not want to send to the git server. How put   examples of temporary files on systems. With maven in Java, I   I do not need to save the target folder for example. Projects made with   NetBeans or other IDEs I can choose not to save the files   configuration settings that are created for the user machine.   Here at this link has a lot of example, for projects in   different languages.
  •   
  • git commit -am "COMMIT MESSAGE"
  •   
  • git push (ready the files will be transferred to Git or   GitHub)
  •   
        
    30.06.2017 / 16:01