So here's a little review on how we got on:
- create github dir
- checkout old code from svn
- check new code into git
- commit code
- start applying some patches and start coding
At this point a colleague suggested that we should preserve the old commit history from subversion when importing the code. Terrific idea! But we already started coding... I'm lazy, so starting all over is clearly not an option. So here's what I did.
- Import the code from subversion into github including the commit history and existing svn branches and tags
- checkout the repository with our developments
- git log #gives you the history, together with the sha for each commit
- git format-patch -4 HEAD # to get patches for the last 4 commits. This creates 4 patch files
- git checkout <new repo from github import>
- cd <new repo from github import>
- apply the patches from step 4 one by one. I think the "git am" command would do all of this in one step, so that may be a better solution. I will try that next time.
No comments:
Post a Comment