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
- Navigate to the
Git
tab on the spider details page. - Enter the URL of the Git repository, and the system will detect whether it's HTTPS or SSH.
- Enter the username and password for the Git repository or SSH key.
- Click the
Save
button.
Switch Branch
- Click the
Checkout
button. - Select the branch you want to check out.
- Click the
Confirm
button.
Pull Code
- Click the
Pull
button and confirm. - The system will pull the code from the remote repository.
Configure Auto Pull
- Check the
Auto Pull
option. - Select the interval for code pulling.
- For spiders with the
Auto Pull
option checked, the system will automatically pull the code every minute.
Commit Changes
- Select the
Changes
tab. - Check the files you want to commit.
- Click the
Commit
button and confirm.