Hi Gabby, If you are looking at a single directory / sub-tree of the main repo, then maybe have a look at the "Sub-tree merge" capability. I have not used it myself, but it sounds like it matches your use case.
[The main Git project uses it for merging in the git-gui and gitk repositories]. Philip ----- Original Message ----- From: Gabby Romano To: Git for human beings Sent: Monday, June 05, 2017 1:26 PM Subject: [git-users] patch git repo from another repo hi guys, I have repo A and repo B which is a subset of A by extracting folder related commits and creating a new repo out of it. since it was done with filter-branch there are new SHA1's and files paths had changed to some extent as well. my question is - if I would like to keep syncing repo B from repo A - what is the best way to do it ? I have tried using this - git --git-dir=<A.git folder> format-patch -k -1 --stdout <sha1> |git am -3 -k I got this - fatal: sha1 information is lacking or useless (<some path>). error: could not build fake ancestor I guess this is confusing to Git but I feel there should be a good way to do this. is there ? Thanks. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.