How to checkout merge request locally, and create new local branch?

后端 未结 4 1230
故里飘歌
故里飘歌 2021-01-31 18:14

I have GitLab repository there and I need to test every merge request locally, before merging to the target branch.

How can I pull/fetch merge request as a new branch?<

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 18:45

    You can also add the line

    fetch = +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*
    

    to your .git/config to have git fetch fetch all merge requests.

提交回复
热议问题