Have a look at https://www.atlassian.com/git/articles/alternatives-to-git-submodule-git-subtree and https://mirrors.edge.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html
I would also recommend https://www.atlassian.com/git/, it has a lot of helpful tutorials and articles.
Thank You. I still cannot find what I am looking for. Maybe subtree is not the right solution for the problem. I am trying to share a project between 2 .NET solutions. When I change code in 1, I want the code to change automatically in the other.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Git subtree will not change the code automatically, it creates a copy of the subtree so you can make changes to it and then push it back to the subtree if you want to share your changes.
The closest to automatically update the code between two solutions would be symlinks. Check out https://github.com/git-for-windows/git/wiki/Symbolic-Links#creating-symbolic-links. You would still have to push/pull manually to make sure your repositories are up-to-date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can merge subtrees from within Sourcetree too, it does not have to be done from the command line. It has been a while since I used it, but I did notice that when you upgrade Sourcetree it used to loose the connections to the subtree repositories so you would have to manually add them back, not sure if this has been fixed yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.