Friday, January 29, 2010

git cloning of svn repository's subdirectory

If you are interested in following a subdirectory of some svn repository, but do not want git to be bothered about previous history:

git svn clone -r HEAD --no-minimize-url url-goes-here

will do the job for you.

You can update to latest version of upstream (svn) repo

git svn rebase

Probably you do not want to mess with this branch, so check-out another branch to do your stuff and merge in local master later.

git checkout -b local_stuff

No comments:

Post a Comment