# git-svn: commit all changes as one svn revision?

3 messages from 2008-05-23 to 2008-05-23. Participants: Robert Anderson, Thomas Harning, Thomas Rast.
Thread: https://gitlist.dev/t/13639

## Robert Anderson, 2008-05-23 16:08

Subject: git-svn: commit all changes as one svn revision?
Message-ID: <9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com>
URL: https://gitlist.dev/e/9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf%40mail.gmail.com

```
Use case:

I make a bunch of git commits developing something that was checked
out from a svn repo using git-svn.  I want to commit all the changes
since my last dcommit as one revision, rather than having each git
commit checked in separately, as dcommit behaves.

Is there a way to do this?

Thanks,
Bob Anderson

```

## Thomas Harning, 2008-05-23 16:22

Subject: Re: git-svn: commit all changes as one svn revision?
Message-ID: <E99FAF46-DD7F-4A3F-B238-E428D129AF50@gmail.com>
URL: https://gitlist.dev/e/E99FAF46-DD7F-4A3F-B238-E428D129AF50%40gmail.com
In-Reply-To: <9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com>

```
On May 23, 2008, at 12:08 PM, Robert Anderson wrote:
> I make a bunch of git commits developing something that was checked
> out from a svn repo using git-svn.  I want to commit all the changes
> since my last dcommit as one revision, rather than having each git
> commit checked in separately, as dcommit behaves.
>
> Is there a way to do this?
git-svn dcommit -m
  (IIRR)

```

## Thomas Rast, 2008-05-23 16:31

Subject: Re: git-svn: commit all changes as one svn revision?
Message-ID: <200805231831.42984.trast@student.ethz.ch>
URL: https://gitlist.dev/e/200805231831.42984.trast%40student.ethz.ch
In-Reply-To: <9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com>

```
You wrote:
> I make a bunch of git commits developing something that was checked
> out from a svn repo using git-svn.  I want to commit all the changes
> since my last dcommit as one revision, rather than having each git
> commit checked in separately, as dcommit behaves.

I usually do

$ git checkout -b side master
... edit, commit ...
$ git checkout master
$ git merge --no-ff side
$ git-svn dcommit

The resulting merge commit looks like a normal merge to Git (keeping
history intact), but like a squashed commit of all changes on 'side'
to SVN.

(If you made all commits on master, you can branch 'side' and hard
reset master to origin/master first.)

- Thomas

-- 
Thomas Rast
trast@student.ethz.ch

```
