Mateusz Soltysik Blog

Mateusz Soltysik Blog

On tech, software engineering, live & more.

26 Jun 2020

Create Merge Request on Push

From command line:

git push -o merge_request.create

Zsh:

echo "alias mrcreate='git push --set-upstream origin $(git_current_branch) -o merge_request.create'" >> ~/.oh-my-zsh/plugins/git/git.plugin.zsh

Resource: https://docs.gitlab.com/ee/user/project/push_options.html