Skip to main content

Merging 2 Project with Git Subtree

  1. UploadCreate Infolder Progressto house / place the subtree project onto

  2. Do Git Subtree Add

    git subtree add --prefix <relative_path_to_subrpoject> <remote_git_url> <remote_branch_name_target>
    
  3. If you want to update package from subtree, do Git Subtree Pull

    git subtree pull -P <relative_path_to_subrpoject> <remote_git_url> <remote_branch_name_target>
    
  4. If there are message, type :q to continue merge

  5. The result will be like this

    The highlighted part is from your subtree remote

    Untitled

  6. If you want to know what capabilities of git subtree

    git subtree --help