Git Subtrees

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • git subtree add -P <prefix> <commit>
  • git subtree add -P <prefix> <repository> <ref>
  • git subtree pull -P <prefix> <repository> <ref>
  • git subtree push -P <prefix> <repository> <ref>
  • git subtree merge -P <prefix> <commit>
  • git subtree split -P <prefix> [OPTIONS] [<commit>]

Remarks

This is an alternative to using a submodule



Got any Git Question?