Share this page

# Fetch code

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

Version 2.3 and later: This command also fetches any topic streams owned by the current user.

git fetch

In this topic:

## Options

Git Client 2.3 supports these options:

`--depth`

`--deepen`

`--shallow-since`

`--unshallow`

For details, see the Git online reference.

Back to top

## 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

Back to top

https://admhelp.microfocus.com Dimensions CM 8942
Tips to improve your search results... Dimensions CM Help Center CM Help 14.6 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: