Fetch code

This command fetches the latest code from a Dimensions CM stream into the FETCH_HEAD in the local Git repository.

(v2.3 and later) This command also fetches any topic streams owned by the current user.

git fetch

Options

Git Client 2.3 supports these options:

--depth

--deepen

--shallow-since

--unshallow

For details see the Git online reference.

Examples

  • Fetch any changes made in Dimensions CM into the corresponding branches of the local Git repository. The option --all performs the fetch in all branches that correspond to Dimensions CM streams rather than just the current branch. Each new changeset that is fetched becomes a commit in the local Git repository.
    git fetch --all
  • Fetch the three most recent changesets.
    git fetch --depth 3