Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first steps #1

Open
arademaker opened this issue Jul 21, 2020 · 0 comments
Open

first steps #1

arademaker opened this issue Jul 21, 2020 · 0 comments

Comments

@arademaker
Copy link
Owner

This repo was created with the commands below, following the step-by-step from http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3 that is consistent with the git-svn documentation.

mkdir treebank
cd treebank
git svn init http://sweaglesw.org/svn/treebank --stdlayout --prefix=svn/
for tag in `git branch -r | grep "tags/" | sed 's/ tags\///'`; do git branch $tag refs/remotes/$tag; done
git svn fetch

The SVN repository (http://sweaglesw.org/svn/treebank/) didn’t contain branches, so I have created branches for the two tags I found: foo and packard-2015. Note that these tags do not look very interesting and maybe they could be removed in the SVN repository. That would make the process even simpler, tracking only the trunk branch.

With the repository ready, I created the GitHub repository and pushed to it

git push -u origin master svn/tags/foo svn/tags/packard-2015

We don’t have automation yet. If Woodley updates its SVN, all I need to do is:

git svn fetch
git push --all -u origin

The first command retrieves the news from SVN to my local machine. The second command pushes the news to GitHub. Eventually, a new tag or branch can be created by Woodley, in that case, I may also need to create git branches for them before pushing to GitHub.

Since the FFTB is not updated very often, I feel the manual solution can work for now, but I wonder if I have any way to me informed by SVN changes. Does anyone know any alternative to subscribe to SVN changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant