Forrest logo
back to context overview

git-subtree

List of commands for git-subtree:

  • git-subtree:tldr:186b5 git-subtree: Merge recent changes up to the latest subtree commit into the subtree.
    $ git subtree merge --prefix=${path-to-directory-} --squash ${repository_url} ${branch_name}
    try on your machine
    explain this command
  • git-subtree:tldr:6ae06 git-subtree: Extract a new project history from the history of a subtree.
    $ git subtree split --prefix=${path-to-directory-} ${repository_url} -b ${branch_name}
    try on your machine
    explain this command
  • git-subtree:tldr:759e1 git-subtree: Add a Git repository as a subtree.
    $ git subtree add --prefix=${path-to-directory-} --squash ${repository_url} ${branch_name}
    try on your machine
    explain this command
  • git-subtree:tldr:93bdc git-subtree: Update subtree repository to its latest commit.
    $ git subtree pull --prefix=${path-to-directory-} ${repository_url} ${branch_name}
    try on your machine
    explain this command
  • git-subtree:tldr:cc8a1 git-subtree: Push commits to a subtree repository.
    $ git subtree push --prefix=${path-to-directory-} ${repository_url} ${branch_name}
    try on your machine
    explain this command
back to context overview