1

I like how (normal) git won't let me push if I haven't rebased with the latest code. However with git svn, when I do git svn dcommit it automatically rebases (i.e. git svn rebase) and then commits. Is there a way I can have it throw up an error message if there is new stuff to rebase?

1
  • 1
    I believe it commits, and then rebases on top of the new SVN revision. I don't think SVN has any way to abort the commit if it's not already at the latest. Commented Apr 19, 2012 at 18:57

1 Answer 1

1

No way. There is always a chance that somebody will commit right after you made any check-as-you-are-looking-for and right before you actually commit something. Just run git svn fetch every time before git svn dcommit to be almost sure git won't rebase automatically.

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

Comments

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.