Created
December 17, 2024 10:21
-
-
Save cjdcordeiro/a00d0e44f0de88d5b16e511246791339 to your computer and use it in GitHub Desktop.
Gets the list of all contributors to a GitHub repository, including contributions to non-default branches
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
| # Change the REPO variable to your desired repo | |
| REPO="https://github.com/canonical/chisel-releases" # example | |
| workdir=`mktemp -d` | |
| >&2 echo "Cloning repo ${REPO} into ${workdir}" | |
| git clone $REPO $workdir | |
| (cd $workdir && \ | |
| git fetch --all --quiet && \ | |
| git log --all --format='%aN <%aE>' | sort -u) | |
| rm -fr $workdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment