[Bioc-devel] Initial setup of git svn with existing GitHub repo - upstream working tree history error
lukmweber at gmail.com
Tue Dec 20 15:57:34 CET 2016
I'm not sure how much this will help you, but I had some similar issues
recently. I also wanted to keep my pre-existing development history in my
personal GitHub repo, which wasn't straightforward. I ended up solving it
by only using 'git cherry-pick' (instead of 'git merge') to transfer
commits between 'master' and 'devel' branches.
Basically I just 'git cherry-picked' the commits across, one by one. I
think I had the same problem as you, where I had some extra commits in the
'devel' branch. Note that your SHA hashes will be different in each branch,
but this is fine.
I included some more details in an email to this list on November 16;
hopefully this will be useful.
University of Zurich, Switzerland
On Mon, Dec 19, 2016 at 8:44 PM, Keegan Korthauer <keegan at jimmy.harvard.edu>
> Hi bioc-devel,
> I am trying set up git svn for my existing GitHub repo for my Bioconductor
> package scDD. I would like to be able to keep all of the development
> history in my preexisting GitHub repo, so I followed the instructions for
> Scenario 2 at http://bioconductor.org/developers/how-to/git-mirror/ <
> http://bioconductor.org/developers/how-to/git-mirror/>. However, when I
> try the ‘git svn rebase’ command I get the ‘dreaded’ error mentioned in the
> troubleshooting section (‘unable to determine upstream SVN information from
> working tree history’).
> I guessed that this error was a result of some commits that were made
> between the package being accepted to Bioconductor and the current state of
> my Github repo’s master branch. I followed the directions a the file that
> was linked to as a reference in the troubleshooting section of the above
> link (http://stackoverflow.com/questions/9805980/unable-to-
> determine-upstream-svn-information-from-working-tree-history <
> determine-upstream-svn-information-from-working-tree-history>), including
> a hard reset of a copy of the master branch to an earlier commit that
> reflects the parent state of the svn repo, then git svn fetch, but I still
> get the same error message as above.
> If anyone has any other suggestions on how I can resolve this conflict
> between svn and git, please let me know. Thanks!
> Keegan Korthauer, PhD
> Postdoctoral Research Fellow
> Department of Biostatistics & Computational Biology, Dana-Farber Cancer
> Department of Biostatistics, Harvard T. H. Chan School of Public Health
> [[alternative HTML version deleted]]
> Bioc-devel at r-project.org mailing list
[[alternative HTML version deleted]]
More information about the Bioc-devel