0

when I do git svn dcommit, it report error like below:

git svn dcommit
Committing to http://192.168.33.203/svn/repos/mt6577/platform/branches/vendor-ALPS.ICS2.6577.SP.V1_HUAQIN77_CU_ICS ...
summit merge conflict: file or directory “mediatek/platform/mt6577/external/meta/sgx” is out of date;please update: resource out of date; try updating at /usr/local/libexec/git-core/git-svn line 579 

My operations:

  1. do three commits(commit34,commit35,commit36) in local

  2. git svn dcommit these three commits to svn

  3. amend commit34,commit35 by rebase command

  4. git svn dcommit , then report above error.

How to handle the error, thanks much.

1 Answer 1

3

First thing, never rebase commits that you have pushed back to repository when using git. Although you are working with git-svn, rebase these commits is not a good idea. Why? Because rebase alters the commit history, this is ok when you just work in local.

In your case, you can run git svn fetch/rebase and resolve any conflict, then dcommit it back.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks for your reply. However it seems no 'git svn update' command, any other command instead ?
when I input 'git svn fetch',it report error: REPORT request failde on 'svn/ngrm/!svn/vcc/default'; when I input 'git svn rebase', it report some conflict different from my modification. I don't know what is wrong. Now I do another 'git svn clone' to redo my job by new commit, hope it will be OK.
I redo my job after hard reset. Later I won't do rebase after doing remote push. Thanks a lot .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.