R
R
raster2021-07-16 17:31:03
git
raster, 2021-07-16 17:31:03

Not pushing changes to github with git push?

I can't push new changes to a github project using git push. Here is the error:

! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/rastr-0/Simple-algorithms-with-C-.git'
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.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-07-16
@Rastr_0

git pull
Did you try to do it first? How is that advised in error?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question