Matlb Projects / Git: The remote update was rejected by the target: refs/heads/main->refs/remotes/origin/main
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi, I am new to all this version control and trying to work on my repo:
https://github.com/Shrediquette/PIVlab/
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:
refs/heads/main->refs/remotes/origin/main
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
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control Integration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!