I've pushed a file a.html
from certain folder a
(for example), but then, when I try to push another file index.html
from another folder b
in this way
git init
git add index.html
git remote add origin #link of my repository
git push -u origin master
I have got something like this
To https://github.com/NavasardianMichael/input.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to '//link to my repository'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I write the same commands both times, but the second time I have an error.