I'm looking to use git subtree to use a framework repo that I own in my project repo. This should look like this:
- project
- Some stuff
- Some stuff
- framework
Using Sourcetree app for windows I made the following:
- Clone project
- Add Subtree framework in a folder named framework
- Add test.txt in framework
That leads me to something like this:
- project
- Some stuff
- Some stuff
- framework
- test.txt
Sourcetree then tells me that test.txt is not staged for commit so I add it and commit it.
I might be using it wrong but I couldn't find a way to make sure test.txt was actually added to the framework repo and not to project/framework as it seems to be.
If I push this I got the right files in project/framework/test.txt as expected but the framework repo remains empty (it didn't receive the change I made)
I thought I had to manually push the subtree to commit these changes to framework repo but it seems to loop endlessly without giving me any error
I let this run for more than 10 minutes but didn't get any result. Any help would be very appreciated.
Thanks for your time.