login community faq

I’m in the process of migrating our Subversion repositories to a set of git repositories on my WebFaction space. Our svn repository structure uses some svn:externals, so I’m trying to replace them with the git-subtree extension, but I’m not sure how to set it up or install it. I’ve used git a fair amount, but I’m far from being a pro. Any ideas, folks?

This question is marked "community wiki".

asked Jul 14 '11 at 19:26

nitefloat's gravatar image

nitefloat
32


You should be able to install git-subtree by:

  • Installing git from source
  • Cloning the git-subtree source repository
  • Copying the file 'git-subtree.sh' into your git scripts directory

Compiling git from source

These commands can compile git from source and install it into ~/git

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
mkdir $HOME/git
mkdir $HOME/src
cd $HOME/src

VER=1.7.6

wget -c "http://kernel.org/pub/software/scm/git/git-$VER.tar.gz"
tar -xzf git-$VER.tar.gz
cd git-$VER
./configure --prefix=$HOME/git
make && make install

Next, ensure that ~/bin is first on the PATH for both login and non-login shells:

1
echo 'export PATH=$HOME/git/bin:$PATH' >> .bashrc

And log out and back in again.

Cloning the git-subtree source repository

You can clone the git-subtree repository using the following command:

1
git clone https://github.com/apenwarr/git-subtree.git

Copying the file 'git-subtree.sh' into your git scripts directory

Since git is now installed in ~/git, just:

1
2
cd git-subtree
cp git-subtree.sh $HOME/git/bin

Hope that helps!

answered Jul 14 '11 at 19:54

ryans's gravatar image

ryans ♦♦
28411420

edited Jul 14 '11 at 19:55

That totally worked! Thanks very much!

(Jul 14 '11 at 20:29) nitefloat nitefloat's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×80
×73
×2

Asked: Jul 14 '11 at 19:26

Seen: 1,530 times

Last updated: Jul 14 '11 at 20:29

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited