V
V
veydlin2015-03-15 14:49:29
git
veydlin, 2015-03-15 14:49:29

How to fix the problem when trying to send a push?

Error code

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to https://[email protected]/teamindigoproject/in...
To
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ' https://[email protected]/teamindigoproject/in... '
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (eg
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Before that, everything worked, but for some reason it suddenly stopped
https://yadi.sk/i/MRjaD6IifGLFp

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rapkin, 2015-03-15
@veydlin

open a terminal and typegit push -f origin master

V
Victor, 2015-03-15
@v_decadence

And what's the problem? It also says to do git pull before git push.
It is possible with --force as rapkin advises , but this is fraught with overwriting other people's commits and getting a hat from colleagues. If you work alone, then the problem is in the amend commit for sure, then you can use --force.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question