# p4 + svn + git

3 messages from 2007-06-08 to 2007-06-08. Participants: Benjamin Sergeant.
Thread: https://gitlist.dev/t/8499

## Benjamin Sergeant, 2007-06-08 04:45

Subject: p4 + svn + git
Message-ID: <1621f9fa0706072145s3ea6d5cdt3c3e6a2eaaffa14c@mail.gmail.com>
URL: https://gitlist.dev/e/1621f9fa0706072145s3ea6d5cdt3c3e6a2eaaffa14c%40mail.gmail.com

```
That might be too much, but let's ask anyway...

My company uses perforce.
I took a snapshot of some code checked out from perforce (a single
branch), that I imported into subversion, a while ago, and started
working with svn only. I have different Unix machines checking in /
out code code from the subversion server (with svn), and I'd like to
keep it this way (if possible).

I'm wondering if I could use git as a gateway between both systems, to
merge code in both direction (svn <-> perforce).

Is this possible, with the help of git-p4import, git-svn, and using
several branches ?

Thanks,
Benjamin.

```

## Benjamin Sergeant, 2007-06-08 05:27

Subject: Re: p4 + svn + git
Message-ID: <1621f9fa0706072227s7b64e4abq682b53eb920c8f53@mail.gmail.com>
URL: https://gitlist.dev/e/1621f9fa0706072227s7b64e4abq682b53eb920c8f53%40mail.gmail.com
In-Reply-To: <1621f9fa0706072145s3ea6d5cdt3c3e6a2eaaffa14c@mail.gmail.com>

```
On 6/7/07, Benjamin Sergeant <bsergean@gmail.com> wrote:
> That might be too much, but let's ask anyway...

This is probably too much, so on to the next question:
Is there a perforce equivalent of git-svn ?

What I'd like to do:
My main Linux machine will be the gateway.

1. I 'clone' the perforce tree with git-p4. I now have a .git, a full repo.
Can I use this as the equivalent of a subversion server, so that every
other machines pull / push from it.

And once in a while (weekly basis), I push the work that's been done
in git to perforce using the Linux box.

Doest that make sense ?

Thanks,
Benjamin.


>
> My company uses perforce.
> I took a snapshot of some code checked out from perforce (a single
> branch), that I imported into subversion, a while ago, and started
> working with svn only. I have different Unix machines checking in /
> out code code from the subversion server (with svn), and I'd like to
> keep it this way (if possible).
>
> I'm wondering if I could use git as a gateway between both systems, to
> merge code in both direction (svn <-> perforce).
>
> Is this possible, with the help of git-p4import, git-svn, and using
> several branches ?
>
> Thanks,
> Benjamin.
>

```

## Benjamin Sergeant, 2007-06-08 05:31

Subject: Re: p4 + svn + git
Message-ID: <1621f9fa0706072231r7ae26d2ew220d7ed9238b5e24@mail.gmail.com>
URL: https://gitlist.dev/e/1621f9fa0706072231r7ae26d2ew220d7ed9238b5e24%40mail.gmail.com
In-Reply-To: <1621f9fa0706072227s7b64e4abq682b53eb920c8f53@mail.gmail.com>

```
Looks like this git-p4 is there:
http://repo.or.cz/w/fast-export.git

On 6/7/07, Benjamin Sergeant <bsergean@gmail.com> wrote:
> On 6/7/07, Benjamin Sergeant <bsergean@gmail.com> wrote:
> > That might be too much, but let's ask anyway...
>
> This is probably too much, so on to the next question:
> Is there a perforce equivalent of git-svn ?
>
> What I'd like to do:
> My main Linux machine will be the gateway.
>
> 1. I 'clone' the perforce tree with git-p4. I now have a .git, a full repo.
> Can I use this as the equivalent of a subversion server, so that every
> other machines pull / push from it.
>
> And once in a while (weekly basis), I push the work that's been done
> in git to perforce using the Linux box.
>
> Doest that make sense ?
>
> Thanks,
> Benjamin.
>
>
> >
> > My company uses perforce.
> > I took a snapshot of some code checked out from perforce (a single
> > branch), that I imported into subversion, a while ago, and started
> > working with svn only. I have different Unix machines checking in /
> > out code code from the subversion server (with svn), and I'd like to
> > keep it this way (if possible).
> >
> > I'm wondering if I could use git as a gateway between both systems, to
> > merge code in both direction (svn <-> perforce).
> >
> > Is this possible, with the help of git-p4import, git-svn, and using
> > several branches ?
> >
> > Thanks,
> > Benjamin.
> >
>

```
