You need to create a Remote Repository which serves as a caching proxy for github.com. If necessary, you can do the same for bitbucket.org or any other remote git repository that you need.
Artifacts (such as tar.gz
files) requested from a remote repository are cached on demand. You can remove downloaded artifacts from the remote repository cache, however, you can not manually deploy artifacts to a remote repository.
To create a remote repository to proxy github.com
or an self-hosted GitHub Enterprise repository, follow the steps below:
In the Administration module, under Repositories | Repositories | Remote, click New Remote Repository and set VCS to be the Package Type.
Set the Repository Key, and specify the URL to be
https://github.com
(or your GitHub Enterprise URL endpoint) as displayed below:Under VCS Settings, select the GitHub provider in the Git Provider field and click Save & Finish.