Reputation: 771
So I have an issue wherein I forked Repository A to create Repository B.
Then I added Repository B into a subdirectory of Repository C via the subtree
command as follows:
git subtree add --prefix={SubdirectoryForRepositoryC} /remote-name {RepositoryBRemoteName} master --squash
I had been using the following command to update the subtree:
git subtree pull --prefix={SubdirectoryForRepositoryC} /remote-name {RepositoryBRemoteName} master --squash
While I pulls changes from Repository B, it doesn't update Repository B based on Repository A and then pull those changes, which is what I need.
Effectively, is it possible to run a command within Repository C which updates Repository B based upon Repository A and then updates the Repository B subtree within Repository C?
Thank you so much!
Upvotes: 0
Views: 52