git sub tree command code example Example: git subtree push git subtree push --prefix=my/folder subtree_origin master