A
A
Anna2016-08-29 23:26:19
git
Anna, 2016-08-29 23:26:19

How to make changes to an existing project on Github Pages?

I successfully created a page on github pages, but I had to make changes in local files. I added the modified files under version control and committed without problems. However, when it comes to git push, after entering the username and password, the following error occurs:

error: failed to push some refs to 'https://github.com/username/username.github.io.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.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-08-29
@anndarina

the error says that the version on the git is newer than on the local computer.
you need to merge the changes and then push.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question