Wednesday, February 4, 2009

Re: svn or git?

In my opinion, if you are on a *nix-system, there is no reason
whatsoever to use Subversion.
Git is so much better it's almost ridiculous. On Windows, I don't
know, but I've heard Git is
getting there...

At work we, unfortunately, switched from Subversion to Perforce.
Perforce is arguably a better system
than SVN but compared to Git it sucks too.

The good thing about Git is that you can use it both with Subversion
and Perforce. I almost don't
have to touch the shitty Perforce apps at all. Using Git with
Subversion is more or less completely
transparent. So my advice is to use Git.

Linus himself may be a git, but in this talk he is also right:
http://www.youtube.com/watch?v=4XpnKHJAok8

Git is much better suited to a lone developer OR a small dev team OR a
ridiculously large one. Using Git
for deployment is also really simple and cool, and can be used with
your own local repo as well.
Just check out .git/hooks dir in any Git repo. You can do something
like (this is from a hooks/post-receive, slightly
edited):

export PUBLISH=/home/someuser/public_html
export GIT_DIR=/home/git/somerepo/.git
rm -rf $PUBLISH/*
cd /home/git/somerepo
cd $PUBLISH
git checkout -f
mkdir -p $PUBLISH/tmp/cache/models
mkdir -p $PUBLISH/tmp/cache/persistent
mkdir -p $PUBLISH/tmp/cache/views
mkdir -p $PUBLISH/tmp/logs
mkdir -p $PUBLISH/tmp/sessions
mkdir -p $PUBLISH/tmp/tests
chmod -R 777 $PUBLISH/tmp
chmod -R 777 $PUBLISH/tmp/cache
echo "Published files to live web directory..."
cake migrate

-------------

On Jan 28, 12:00 pm, leo <ponton....@gmail.com> wrote:
> This has probably been discussed before, but I can't find anything
> specific.
>
> Why does CakePHP use SVN, while The Chaw appears to use GIT?
>
> Should I be using one rather than the other?
>
> Will CakePHP eventually migrate to GIT?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: