Answer the question
In order to leave comments, you need to log in
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
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
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.
I tried from both branches and pool and push and with and without branches =(
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question