Matlb Projects / Git: The remote update was rejected by the target: refs/heads​/main->ref​s/remotes/​origin/mai​n

4 ビュー (過去 30 日間)
Hi, I am new to all this version control and trying to work on my repo:
In Matlab, I am using the Projects environment which seems to be quite handy. I am Fetching and Pulling directly from github. Then I am modifying files and adding stuff (also mat files are edited, which are marked as binary in the .gitattributes file). When I press Commit, then Push, I get this error:
The remote update was rejected by the target:
I don't know how to proceed....
I have no clue of "branches", "tags" etc, and I did not intentionally use any of these. Please help me with my issue, thanks.
  2 件のコメント
Mario Malic
Mario Malic 2020 年 11 月 20 日
編集済み: Mario Malic 2020 年 11 月 20 日
Open github in your project folder, try
git commit -m "testmessage" % m is merge option
git push
However, you might find more informations elsewhere, since this is a Git related issue.
William Thielicke
William Thielicke 2020 年 11 月 20 日
C:\Users\trash\MATLAB\Projects\PIVlab>git push
info: please complete authentication in your browser...
Enumerating objects: 20, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 4 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 116.90 KiB | 16.70 MiB/s, done.
Total 10 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
remote: error: GH007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
! [remote rejected] main -> main (push declined due to email privacy restrictions)
error: failed to push some refs to ''
Thank you, it was my email settings. Looks like i fixed it now...


回答 (0 件)


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



Community Treasure Hunt

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

Start Hunting!

Translated by