Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Moving file to a new project / repository
Moving file to a new project / repository [message #656577] Sat, 26 February 2011 23:22 Go to next message
Adrian  is currently offline Adrian Friend
Messages: 8
Registered: April 2010
Junior Member
I have a file with multiple versions being managed in a repository. I would like to move that file, along with all of its history into a new repository.
Both repositories are local. Basically I'm moving the file from one project to another.

Is this possible?

Re: Moving file to a new project / repository [message #656597 is a reply to message #656577] Sun, 27 February 2011 12:25 Go to previous message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
It is possible, but not with EGit. You should read the manpages for git filter-branch ( ranch.html) and git read-tree ( e.html) along with the subtree merge strategy ( merge-subtree.html).
I tried a similar thing last week, but i didn't succeed in the way i wanted, and so i just deleted the file from one repository and added it in the other.

[Updated on: Sun, 27 February 2011 12:27]

Report message to a moderator

Previous Topic:Password not stored
Next Topic:Frustrated - please help me - ejit/jgit source
Goto Forum:

Current Time: Fri May 24 10:47:01 GMT 2024

Powered by FUDForum. Page generated in 0.03993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top