I have a large main project with several directories like subtrees .
I want to push changes in one specific subtree to its beginning, which is a separate repository.
The problem is that the current subtree I want to click on was not originally from the repository I want to paste into. This came from another repo, through the subtree guides that I found on Google. It looks very similar.
A large project outline where important_subtree is what I'm worried about.
~/devel/bigproject .git/ some_subtree/ other_subtree/ important_subtree/ abc.txt efg.txt <--- new version hij.txt
And important_subtree "strongly connected" to this repo:
~/devel/important .git/ abc.txt efg.txt <--- old version hij.txt
Now ~/devel/bigproject/important_subtree/efg.txt has changed, and I want to push important_subtree on the repo ~/devel/important . Therefore afterwards ~/devel/important/efg.txt also change.
The only thing I managed to do was to click on to make everything in a large project important, which is clearly not what I want. Only changes in the subtree should be pushed.
source share