Reputation: 5442
I'm using github to store my PowerShell profile. I found posh-vcs that I'd like to use on top of my actual implementation. I'd like to be able to merge changes from posh-vcs to my current environment.
What would be the best way to handle this? Just have one repository for my files, and in another folder have the posh-vcs? Or is this an appropriate use of the Fork? i.e., fork the project and add my own files, merging from the parent project when appropriate?
Upvotes: 2
Views: 703
Reputation: 1323115
If you have a similar structure between the two repositories, you can try a grafts
technique to:
The fork is only interesting if you want to contribute back to that external repo.
If not, you can simply clone the external repo and import your history through the grafts file, changing your repo (without any link with the post-vcs repo)
Other options involves:
See those two options in the question on repo tranfers, with this answer for more on submodules.
Upvotes: 2