**** Create the decoy directory
-=git-svn= keeps some info about the svn repository, to make it easier
+=git svn= keeps some info about the svn repository, to make it easier
to keep the two in sync. However we are not interested in staying in
sync, we just want to move to Git. Create a decoy Git version of the
repo with
: $ mkdir sawsim.svn
: $ cd sawsim.svn
- : $ git-svn init svn://abax.physics.drexel.edu/sawsim/trunk/
+ : $ git svn init svn://abax.physics.drexel.edu/sawsim/trunk/
: $ cat >> .git/config <<EOF
: [svn]
: authorsfile = users.txt
: $ cat > users.txt <<EOF
: wking = W. Trevor King <wking at drexel dot edu>
: EOF
- : $ git-svn fetch
+ : $ git svn fetch
Jon Maddox suggests using
: $ git config svn.authorsfile ~/Desktop/users.txt
instead of my manual =.git/config= editing, but my stock Debian git
-(1.4.4.4) doesn't seem to have =git-config=. No big deal.
+(1.4.4.4) doesn't seem to have =git config=. No big deal.
Check that this worked and translated your users correctly with
: $ mkdir comedi.cvs
: $ cd comedi.cvs
: $ #cvs -d :pserver:anonymous@cvs.comedi.org:/cvs/comedi login
- : $ git-cvsimport -p x -v -d :pserver:anonymous@cvs.comedi.org:/cvs/comedi comedi
+ : $ git cvsimport -p x -v -d :pserver:anonymous@cvs.comedi.org:/cvs/comedi comedi
The login line may not be necessary for other CVS projects.
-Arguments to git-cvsimport:
+Arguments to =git cvsimport=:
|----------+---------------------------------------------------------------------|
| Option | Meaning |
*** Update with the latest cvs
: $ cd comedi.cvs
- : $ git-cvsimport -p x -v -d :pserver:anonymous@cvs.comedi.org:/cvs/comedi comedi
+ : $ git cvsimport -p x -v -d :pserver:anonymous@cvs.comedi.org:/cvs/comedi comedi
: $ cd ../comedi
: $ git pull
*** Create a patch against the cvs source
- : $ git-format-patch origin
+ : $ git format-patch origin
* Other useful examples
** Purge all knowledge of a given file or subdir from history
From [[http://github.com/apenwarr/git-subtree/tree/master][git-subtree]]
The super-project makes some local alterations. Pull/merge them
-with =git-subtree=.
+with =git subtree=.
** Backdating Git tags