Last active
September 2, 2024 14:13
-
-
Save zthxxx/eeadc3ddda213c6650d23435e460dc34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find merge-request which contains commit in GitLab | |
# https://gitlab.com/gitlab-org/gitlab-foss/-/issues/28037 | |
# https://stackoverflow.com/a/17819027/7277090 | |
git config --add remote.origin.fetch '+refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*' | |
git fetch origin | |
git for-each-ref --contains <hash> | grep merge-requests | head -n 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment