Git Integration


Git Integration

Crawlab allows users to configure a Git repository for version control of their spiders. This is very useful for team collaboration.

Configure Git Repository

  1. Navigate to the Git tab on the spider details page.
  2. Enter the URL of the Git repository, and the system will detect whether it's HTTPS or SSH.
  3. Enter the username and password for the Git repository or SSH key.
  4. Click the Save button.

Switch Branch

  1. Click the Checkout button.
  2. Select the branch you want to check out.
  3. Click the Confirm button.

Pull Code

  1. Click the Pull button and confirm.
  2. The system will pull the code from the remote repository.

Configure Auto Pull

  1. Check the Auto Pull option.
  2. Select the interval for code pulling.
  3. For spiders with the Auto Pull option checked, the system will automatically pull the code every minute.

Commit Changes

  1. Select the Changes tab.
  2. Check the files you want to commit.
  3. Click the Commit button and confirm.