Skip to content

Instantly share code, notes, and snippets.

@cjdcordeiro
Created December 17, 2024 10:21
Show Gist options
  • Select an option

  • Save cjdcordeiro/a00d0e44f0de88d5b16e511246791339 to your computer and use it in GitHub Desktop.

Select an option

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
# 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