Last active
September 15, 2021 18:56
Star
You must be signed in to star a gist
Fetching Github PR # Only (for CI)
This file contains 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