github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

gma / git-me-up

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 18
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Automate common steps when getting setup with git-svn. — Read more

  cancel

http://effectif.com/articles/easy-git-svn-for-rails

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added a LICENSE (FreeBSD style). 
gma (author)
Wed Apr 30 15:26:18 -0700 2008
commit  79612c7aaccee339cd77281b37e42df2b302b74a
tree    75c14e5d98fedec9225d7caa7f7bc19ce3a20e74
parent  aa67640100c03cd03381355e2427951501a2d01d
git-me-up /
name age
history
message
file .gitignore Thu Apr 24 10:12:48 -0700 2008 Ignore Mac files. [Graham Ashton]
file LICENSE Wed Apr 30 15:26:18 -0700 2008 Added a LICENSE (FreeBSD style). [gma]
file Makefile Thu Apr 24 10:12:24 -0700 2008 Added Makefile and docs. [Graham Ashton]
file README Tue Apr 29 15:20:03 -0700 2008 Added support for specifying which revision(s) ... [Graham Ashton]
file git-me-up Tue Apr 29 15:20:03 -0700 2008 Added support for specifying which revision(s) ... [Graham Ashton]
README
README
======

git-me-up was written to automate the creation of a local git repo for a Rails
app that is hosted in Subversion. It should work equally well for non Rails
projects.

In a nutshell, this is what it does:

  - Clones the latest version of the source (by default skipping the history
    for performance reasons) into a new local Git repository.

  - Recreates empty directories (that git chooses to ignore), but that your
    app might need.

  - Converts any svn:ignore Subversion properties into entries in your
    .git/info/exclude file.

  - Checks for Rails plugins installed via svn:externals and clones them into
    their own git repositories (located in a new directory called ./plugins,
    relative to your working directory). Each external plugin is symlinked
    into vendor/plugins. Git is then instructed to ignore them so that it
    doesn't attempt to commit the symlink back into Subversion.

  - Creates a local working branch (called "work" by default; override it by
    setting the BRANCH environement variable).

All this happens in a manner that avoids adding Git metadata (such as
.gitignore files) to your subversion repository.

INSTALL
=======

To install git-me-up into /usr/local/bin, run:

    $ sudo make install

You will need to install git-svn before you can use git-me-up.

USAGE
=====

You need to specify two arguments; the Subversion repo that you will be
checking back into, and the path (relative to your current directory) of the
Git repository that you'd like to create.

For example:

    $ git-me-up http://svn.mydomain.com/repo/project/trunk project

By default git-me-up will pull the latest version of your code from
Subversion, ignoring all the history. If you want to override the revision
pulled, set the REVISION environment variable, like this:

    $ REVISION=123:HEAD http://svn.mydomain.com/repo/project/trunk project

See the coverage of the -r option in the git-svn(1) man page for more examples
of how to specify the revision.

Give it a whirl. If you don't like it, delete your local directory. No harm
done...
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server