git push to a remote repository - "Unable to perform non fast forward merge on target. Please pull or fetch and merge manually."

9 ビュー (過去 30 日間)
When using Git integration with Simulink Projects, and performing a push to a remote repository, you may get the following "Unable to perform non fast forward merge on target. Please pull or fetch and merge manually."

採用された回答

David
David 2014 年 9 月 22 日
The message "Unable to perform non fast forward merge on target. Please pull or fetch and merge manually" usually means that your origin branch is not up to date; or in other words, someone else has submitted to the remote repository since you created your repository and you are not up to date. You need to push the fetch button to update your origin branch and then merge the origin branch into your local branch.
For instance if you are on the master branch, push fetch, open the branch manager, select origin/master and select merge. Then you need to resolve any conflicts and perform a commit. You might not have any conflicts, but if you do they need resolving.
Once you have done this you will be able to do a push.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSource Control in Projects についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by