Push commits to a subtree repository

git subtree

  • Tool to manage project dependencies as subprojects.
    More information: <https://manpages.debian.org/testing/git-man/git-subtree.1.en.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git subtree push --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}

click the source code to copy install git subtree on any operating system with command-not-found.com