I need to get all open Merge requests by author and if possible within a time frame. Tried using this command for Github where it works fine -

git ls-remote origin 'pull/*/head'

But in gitlab, this is not returning anything, please suggest to get all MRs, if possible status = 'opened', 'closed', 'merged' and time frame.

1 Answer 1


This is the pattern to fetch all Merge Requests from GitLab -

git ls-remote origin 'refs/merge-requests/*/head'


git ls-remote origin 'refs/merge-requests/*/merge'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.