Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedded git repository that tracks our changes?

Similar to git's submodule functionality, I'd like to embed a clone of a remote repository in my own. However, I would like the ability to make changes to our embedded version while still maintaining the ability to pull updates from the remote as well. I don't see how I can do this with a submodule. Is this functionally possible? Right now I just have the remote source directory copied into my repository and while that allows me to track my local changes, it loses the ability to pull updates from the remote repository or manage branches.

like image 977
Jon Shier Avatar asked Jun 28 '26 04:06

Jon Shier


1 Answers

Depending on your situation you may want subtrees: http://help.github.com/subtree-merge/. You can pull and update the subtree in a Makefile or cron if you need to be up to date.

like image 51
abesto Avatar answered Jun 30 '26 18:06

abesto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!