S
S
sadgb2012-01-20 14:25:48
git
sadgb, 2012-01-20 14:25:48

git push problem - Everything is up to date but push failed - non fast forward

Hello
Faced the following problem
Git contains 2 branches
master and development2.2

I'm trying to make a pool in 3 ways

git pull
git pull origin master
git pull origin development2.2

Already up-to-date.

Now the task is to push to development2.2

git push origin development2.2
To [email protected]:skud.git
! [rejected] development2.2 -> development2.2 (non-fast-forward)
error: failed to push some refs to '…

How so? I probably don’t understand something, tell me in which direction to dig?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
C
cubuanic, 2012-01-23
@cubuanic

I hope this article will give you the answer to your questions.

A
Alexey Sundukov, 2012-01-21
@alekciy

And if something kamitit then?
Try:
git fetch
git merge origin/development2.2
git stash
git rebase origin/development2.2
git push origin development2.2

D
defuz, 2012-01-21
@defuz

git push -f origin development2.2
-f == forced

K
kuzemchik, 2012-01-22
@kuzemchik

What branch are you in right now? it feels like in master. You must be in development2.2 in order to get changes in development at the pull stage. If everything is ok and there are no conflicts, then pull and push from development2.2 will solve the problem. Otherwise, the same but with conflict resolution.

S
sadgb, 2012-01-22
@sadgb

I tried from both branches and pool and push and with and without branches =(

J
Jaty4, 2014-01-29
@Jaty4

there was the same problem yesterday, I solved the problem by deleting the remote branch, and then pushing into it (a new one was created)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question