public
Description: Automate common steps when getting setup with git-svn.
Homepage: http://effectif.com/articles/easy-git-svn-for-rails
Clone URL: git://github.com/gma/git-me-up.git
git-me-up / README
100644 62 lines (41 sloc) 2.085 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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...