Joe Jasinski
Joe Jasinski

Reputation: 10781

Checkout SVN; modify; upload to existing Github project

I have an existing project that I've been working on and started using Subversion for version control. Since then, I've open sourced the project on Github and used Github's documentation on the "git svn" command to translate SVN history into a git repo.

However, now I've made changes to the original project in SVN. I'd like to checkout my changes from SVN and then push them up (merge them) to the github repository.

It seems like a lot of the documentation on "svn get" tells you how you can check out from an SVN repository and interact with it like you can a clone of a git repository, and then commit it back to the SVN repository. But in my case, I'd like to commit it back to github... I can't seem to find an example of that.

I'm fairly familiar with SVN, but am very new to git and am still trying to get a grip on the concepts. Does anyone have any advice on how to checkout from SVN as a git clone, and then push to github? Any advice is much appreciated.

Thanks

Upvotes: 1

Views: 497

Answers (1)

Adam Dymitruk
Adam Dymitruk

Reputation: 129526

Once you set up an SVN remote in a git repo and a github remote, you can push/pull changes from either.

All you need to do is update your branch from SVN and now do a push to git hub. This is the easier part of using both hence why you probably don't see it discussed often.

Upvotes: 1

Related Questions