Changes between Version 3 and Version 4 of ChimeraWithGit
- Timestamp:
- Dec 2, 2010, 4:03:32 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ChimeraWithGit
v3 v4 2 2 == Developing Chimera with git == 3 3 4 I started out developing an extension for Chimera with a [http://git-scm.com/ git] repository. It was possible to import the [http://git-scm.com/ git] repository history into the Chimera [http://subversion.tigris.org/ subversion] repository, using some instructions from [http://code.google.com/p/support/wiki/ImportingFromGit google code]. 5 6 I ran the following: 4 I started out developing an extension for Chimera with a [http://git-scm.com/ git] repository. It was possible to import the git repository history into the Chimera [http://subversion.tigris.org/ subversion] repository, using some instructions from [http://code.google.com/p/support/wiki/ImportingFromGit google code]. I ran the following: 7 5 {{{ 6 # 7 # Step 1. Create a git svn clone of the Chimera source. 8 # 8 9 cd /data/src/ 9 10 mkdir tmp 10 11 cd tmp/ 11 12 git svn clone svn+ssh://plato.cgl.ucsf.edu/usr/local/src/svn/chimera/trunk chimera 12 13 # Wait a long time for this to catch up on 30000+ commits 14 cd chimera 15 git status 16 # Fetch the git repository for my Chimera extension; this does not merge anything. 17 git fetch ssh://weber.cgl.ucsf.edu/data/gitroot/chimera-extension 18 # Create a temporary branch for the fetched repository, and tag its head: 19 git branch tmp $(cut -b-40 .git/FETCH_HEAD) 20 git tag -a -m "Animation last fetch" last tmp 21 # 22 # Step 2. Apply initial commit from my git repository onto the git-svn 23 # 24 INIT_COMMIT=$(git log tmp --pretty=format:%H | tail -1) 25 git checkout $INIT_COMMIT . 26 git commit -C $INIT_COMMIT 27 # 28 # Step 3. Rebase and submit 29 # 30 # Apply all the other commits to the tmp branch; make it the new master branch. 31 git rebase master tmp 32 git branch -M tmp master 33 # Lastly, commit the changes back to the svn repository 34 git svn dcommit 13 35 }}}
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)