# Fresh gitlab commands for developers

**URL:** https://discourse.vtk.org/t/fresh-gitlab-commands-for-developers/16240
**Category:** Development
**Created:** [January 17, 2026, 3:23pm UTC](https://discourse.vtk.org/t/fresh-gitlab-commands-for-developers/16240 "2026-01-17T15:23:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [January 17, 2026, 3:23pm UTC](https://discourse.vtk.org/t/fresh-gitlab-commands-for-developers/16240/1 "2026-01-17T15:23:35Z")

</div>

This applies to the VTK master branch and the upcoming 9.6.0 release.

All VTK developers are familiar with `git gitlab-push`, but VTK also provides some other gitlab CLI commands (some only recently added) which can improve the gitlab experience.

The following command is useful for syncing gitlab changes back to your local branch, for example after executing `Do: refomat` in a gitlab merge request:

```plaintext
usage: git gitlab-sync [<remote>] [<options>...] [--]

OPTIONS

--dry-run
    Show what would be changed without actually updating

--autostash
    automatically stash/stash pop before and after

```

This command has been around for a long time, but it used to print odd and confusing diagnostics if it encountered any errors during the sync. Now, it should be much more reliable.

The following command is for fetching a gitlab merge request (usually someone else’s) to your local machine.

```plaintext
usage: git fetch-mr [--named <name>] [--force] <mr-id>

OPTIONS

--named <name>
    Use <name> for the local branch instead of mr-<mr-id>

--force
    Overwrite the local branch if it already exists

```

For example, `git fetch-mr 12345` will create a local branch `mr-12345`. It creates the branch but does not check out the branch, i.e. your working tree remains unchanged.
