0

I am using git-svn and I know that svn does not support changing commits

if I haven't yet run git svn dcommit can i still change the last commit message, i left something out of it.

If so, how do you amend the last commit message?

EDIT:

i figured out i can do git commit --amend but is there any problem doing this using svn backend?

Dustin
  • 89,080
  • 21
  • 111
  • 133
loosecannon
  • 7,683
  • 3
  • 32
  • 43
  • 1
    As long as you haven't dcommitted yet, there shouldn't be any problem. – JoshuaRogers Jun 03 '11 at 15:46
  • @JoshuaRogers: I would accept that as an answer. – loosecannon Jun 03 '11 at 15:49
  • This question has been answered in [another stackoverflow post](https://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git) – JoshuaRogers Jun 03 '11 at 15:41
  • is there any problem doing that with git-svn. My guess says no, since i haven't dcommit-ed it yet, but I'm unsure how it handles history with that. – loosecannon Jun 03 '11 at 15:44
  • No. When you git svn dcommit, the svn bridge will take all of the changes that have been made since you have last dcommitted and post them back. As long as you have not already dcommitted, svn will be unaware that you have changed anything. You can use git as normal. – JoshuaRogers Jun 03 '11 at 18:32

1 Answers1

2

There is an issue with svn if you have already updated svn. There is no practical way of rewriting history in svn.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141