# GitRepository `Maestro\Core\Task\GitRepositoryTask` Checkout a git repository ## Description Use this task to establish a GIT repository in your workspace. ```php new GitRepositoryTask( url: 'http://example.com/my-repo', path: 'my-repo' ); ``` Typically you will also want to change the working directory to this repository so that subsequent tasks operate on it: ```php new SequentialTask([ new GitRepositoryTask(url: 'http://example.com/my-repo', path: 'my-repo'), new SetDirectoryTask('my-repo') ]); ```