Ошибка при слитии проекта на GitHub error: failed to push some refs to

вчера решил залить в репозиторий, все прошло успешной, но сегодня git выдает ошибку, и я не могу понять в чем ошибка. Вчера сливал проект данным способом:

git init
git add .
git commit -m 'commit'
git remote add origin https://github.com/Sholokhov99/Web.git
git push -u origin master

Но сегодня решил добавить в данный репозиторий новую директиву данным способом:

git init
git add SnakeJSGame
git commit -m 'commit'
git remote add origin https://github.com/Sholokhov99/Web.git
git push -u origin master

Но в ответ получил данную ошибку

 To https://github.com/Sholokhov99/Web.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/Sholokhov99/Web.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Ответы (1 шт):

Автор решения: Данил

ты в гитхабе чото наделал.

пишешь git pull и все работает!

→ Ссылка