I am trying to git push from my local repo (TEST) to remote branch (TEST-tapariak) using following command:
git push origin TEST:TEST-tapariak
I am getting following error:
To ssh://git.example.com:2222/pkg/PARISService
! [rejected] TEST -> TEST-tapariak (non-fast-forward)
error: failed to push some refs to 'ssh://git.example.com:2222/pkg/PARISService'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and 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.
I saw similar question and did git pull --rebase, git pull --rebase origin TEST, and git pull --rebase origin TEST-tapariak but didn't work for me.
Can anyone guide me how to resolve this?