Switch over to git moonbase from svn moonbase

Terry Chan tpchan at comcast.net
Fri Nov 30 03:41:15 CET 2007


As I still haven't seen the email from sofar about the switch over, I thought a
short email is in order with some tips.

For devs that want to continue with Lunar moonbase development you'll need to:

1. lin git
2. cd /home/yourname
3. git clone git://lunar-linux.org/lunar/moonbase.git moonbase.git
4. lunar set MOONBASE=/home/yourname/moonbase.git
5. edit ~/moonbase.git/.git/config and add two lines for specifying a remote
for git push, something like:

    [remote "doppio"]
        url = ssh://foo-projects.org/var/git/lunar/moonbase.git

6. For those devs that formerly did NOT have ssh accounts on doppio, see sofar
for an account. You won't be able to do "git push" until you get an ssh account,
orthe permissions on the git moonbase get worked on to see if there is a way
around this problem.

7. "git pull" is all you'll need to fetch the lastest moonbase changes after
the initial git clone command.

8. Read some git tutorials on the net. All the git docs are located in
/usr/share/doc/git/Documentation.

9. Your basic workflow is now something like:

     git pull
     edit all your changes to moonbase
     git commit -a
     
and after you have setup your ssh account and editted ~/moonbase.git/.git/config
you will be able to send your changes back to doppio with:

     git push doppio master

Important new benefits to using git:

A. No more thousands of .svn dirs and files cluttering up your developer's
moonbase, so all the lunar core tools work MUCH faster again.

B. Personal moonbases are so simple now. Just do "git branch my_moonbase"
and go crazy. Then before you want to pull "official" moonbase changes to your
git repo do, "git checkout master", and then "git pull".  When you need access
to your personal moonbase again, then do "git checkout my_moonbase" followed
by "git merge master" to pick-up all of your personal moonbase items. Remember
to go back to "official" moonbase with "git checkout master".

C. Branches work correctly in git as opposed to svn.

D. Merges work correctly in git.

E. git will track file moves in moonbase much better than svn.

moonbase.tar.bz2 is already being generated from the git version of moonbase.

theedge, lunar-iso, lunar and other svn repos on doppio are still intact and
have not (yet) been switched over to git.

Stay tuned for further git moonbase related news.

Terry Chan


More information about the Lunar-dev mailing list