爲使重訂normaly我做混帳的正確途徑底墊
$ git checkout branchA
$ git rebase master
$ git checkout master
$ git merge branchA
確定。
我的問題是與其他回購我的叉子,我添加了三個提交,當我做
git pull --rebase otherRepo master
得到otherRepo犯和我提交到日誌的負責人,但是當我試圖推
! [rejected] HEAD -> master (non-fast-forward)
error: failed to push some refs to '[email protected]: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.
與
$ git push --force
我可以把我的提交到我的遠程回購,但拉的每一次是一樣的東西,
這是正確的方法嗎?