Download a private repo from Github with MFA enabled


  1. Create a personal access token
  2. Use it as the username in the request
export GITHUB_TOKEN=...
curl --location https://$GITHUB_TOKEN@github.com/myname/myrepo/archive/mybranch.zip >myrepo.zip

Date: 2021-03-10

Tags:  git

Share: