for make a rebase normaly I make
$ git checkout branchA
$ git rebase master
$ git checkout master
$ git merge branchA
ok.
my problem is with my fork from other repo, I add three commits and when I make
git pull --rebase otherRepo master
get otherRepo commits and my commits go to HEAD of log, but when I try push
! [rejected] HEAD -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:juanpabloaj/homebrew.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
with
$ git push --force
I can push my commits to my remote repo, but every time of pull is same thing,
which is the correct way to do it?