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
Hello.
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?

Thanks.
Adrian
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 ( http://www.kernel.org/pub/software/scm/git/docs/git-filter-b ranch.html) and git read-tree ( http://www.kernel.org/pub/software/scm/git/docs/git-read-tre e.html) along with the subtree merge strategy ( http://www.kernel.org/pub/software/scm/git/docs/howto/using- 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: Tue Mar 19 02:37:41 GMT 2024

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

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

Back to the top