How to push my code on other branch on git

Viewed 22

I create "production" branch to get all modifications of my team, after that, I'll push it on main branch. Right now, I get error like :

git push --set-upstream origin production
To https://github.com/Imuxt/netsiahel-stack.git
 ! [rejected] production -> production (non-fast-forward)
error: unable to push references to 'https://github.com/Imuxt/netsiahel-stack.git'
tip: updates were rejected because the current branch tip is behind
tip: its remote counterpart. Integrate remote changes (e.g. 'git pull ...')
tip: before pushing again.
tip: See the 'Note about fast-forwards' in 'git push --help' for more information.

I would like to know that if some ones may help me.

0 Answers
Related