When I push code that I’ve committed (using git push
), I get a very nice, helpful message from the gitlab server that includes a link I can immediately use to set up a merge request. It looks something like this:
remote:
remote: To create a merge request for feature/xxxxx, visit:
remote: https://gitlab.xxxxx.net/xxxxx/-/merge_requests/new?merge_request%5Bsource_branch%5D=feature%2Fxxxxx
remote:
This is a very useful message for me, as I can simply copy this link and paste it directly into a web browser. Directly visiting this link streamlines the process to get the merge request started, as I get to skip several steps that I would otherwise have to complete.
While I get this message every time I perform a git push
(after I’ve committed new changes, that is), I don’t always immediately visit that link. (For example, I may choose to continue revising my code, or at least review my code.)
But later, when I’m ready to start a merge request, I no longer have access to that helpful server text that contains that link.
Of course, this isn’t a problem if I have more code to push, but sometimes I don’t have additional code to push. Is there a way I can see this helpful merge request URL again?
I’ve tried the following:
git push
git push --force
but they both respond with a simple: Everything up-to-date
So simply doing a git push
doesn’t work. (I would have to commit something new, and then doing a git push
would give me the information I want.)
To restate my question: Is there a way I can see the merge request URL (the one given to me by the gitlab server) without having to both re-commit code and re-push?
Thank you.