Share via

How to raise GitLab "Merge Request" from Visual Studio 2022?

Ashutosh Agrawal 20 Reputation points
2026-02-11T06:18:58.85+00:00

How to raise GitLab "Merge Request" from Visual Studio 2022?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lukas 10 Reputation points
    2026-02-11T06:41:07.6733333+00:00

    I think there are two ways:

    1. Use the "GitLab Extension for Visual Studio"

    This should be the simplest way.

    1. Via git

    As far as I know GitLab supports creating an MR automatically via a specific command line flag. You can set this up as an alias so that every time you push from Visual Studio, an MR is drafted.

    So you would basically do something like:

    git config --global alias.push-mr "push -o merge_request.create"

    And then you would use the terminal to:

    git push-mr

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.