Last active
September 15, 2021 18:56
-
-
Save minhoryang/ce0d1f6d8f5e34151cb104d42368af15 to your computer and use it in GitHub Desktop.
Fetching Github PR # Only (for CI)
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
git init | |
git remote add origin <REMOTE_URL> | |
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" | |
git fetch --no-tags --depth=1 --recurse-submodules=yes --multiple -j origin pull/<PR_NO>/head:refs/remotes/origin/pr/<PR_NO> | |
git checkout origin/pr/<PR_NO> | |
git log # one commit! | |
git describe —all # remotes/origin/pr/259 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git pr - Global .gitconfig aliases for Pull Request Managment