We have a project using a GitHub repository, with the agent in the Amazon cloud. Locally, and via the cmd line from the cloud box, a Git clone of this 400MB repos takes seconds. However running the build via TeamCity for the first time, to a clean directory, using checkout on agent, takes approximately 1 hour. We need to be able to bring new boxes up more quickly than this.
We tried another, smaller repository which has the same authentication, from within the same project - that worked correctly.
Can you please give us any pointers to why the Git clone process takes seconds via the command line but >50 mins via the agent on the same box, run by the same user. Presumably the agent runs 'git clone ...'? Help appreciated.