I recently switched to synchronizing my repositories to https:// on GitHub (due to firewall issues), and it asks for a password every time.
Is there a way to cache t
The composer documentation mentions that you can prevent it from using the GitHub API, so that it acts like git clone
:
If you set the
no-api
key totrue
on a GitHub repository it will clone the repository as it would with any other Git repository instead of using the GitHub API. But unlike using thegit
driver directly, composer will still attempt to use GitHub's zip files.
So the section would look like this:
"repositories": [
{
"type": "vcs",
"no-api": true,
"url": "https://github.com/your/repo"
}
],
Keep in mind that the API is there for a reason. So it this should be a method of last resort regarding the increased load on github.com.