Creating a Git Depot
A Git depot is a bare clone of a Git repository, which means it’s a repository that doesn’t have a staging area where edits can be made and committed. Instead, it can only be pushed to and pulled from. A depot is usually used to share changes between distributed copies of the repository. The best example of this is a GitHub project.
Create a depot for the Twitalytics repository so that Jenkins can check out the code and run the tests against it. You could do this by pushing the code to GitHub or a similar service, but you’ll use a local depot in this example.
Run the following command with the --bare option to create a copy of your Twitalytics repository in the ~/depot/twitalytics.git directory:
| | $ git clone ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access